/* Grid-programs.css */

:root {
  --primary-color: #0056ff;      /* Brand or accent color */
  --secondary-color: #202658;     /* Button and dark elements */
  --light-bg: #f7f7f7;            /* Background for light areas */
  --dark-text: #000000;              /* Primary text color */
  --muted-text: #555;             /* Secondary text */
  --card-shadow: rgba(0, 0, 0, 0.05);

  --font-size-base: 15px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-weight-regular: 400;
  --font-weight-bold: 600;
	
    --primary-font: 'Jost', 'Segoe UI', Roboto, sans-serif;
}

/* ======== Program Tab Layout ======== */
.program-tab-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px auto;
    max-width: 1200px;
}

/* Sidebar Tabs */
.tab-categories {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 15px;
    margin-bottom: 5px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.tab-btn:hover,
.tab-btn.active {
    background: #fff;
    border-left: 4px solid var(--primary-color);
/*     color: #0056ff; */
	color: var(--primary-color);
    font-weight: bold;
}

/* Right Content Area */
.tab-content-wrapper {
    flex: 3 1 800px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
.program-mainheading {
    width: 100%;           /* or a fixed width like 300px */
    height: 120px;         /* fixed height */
    padding: 16px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}
.icon-grid {
    padding-top: 10px;
}

/* Program Cards */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.program-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
/* 	padding-bottom: 15px; */
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.program-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.program-card h3 {
    font-size: 18px;
	font-family: var(--primary-font);
/*     margin: 15px 10px 10px; */
    color: #ffffff;
	font-weight:500;
}

.program-btn-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adjust gap between buttons */
    width: 100%;
    margin-top: 15px;
}

/*  .program-btn {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    flex: 1;
}  */

.left-btn {
    margin-right: auto;
    text-align: center;
}

.right-btn {
    margin-left: auto;
    text-align: center;
}

.program-btn {
    display: inline-block;
    position: relative;
    padding: 6px 13px;
    color: #202658;
	font-size: 15px;
    font-weight: 500;
	font-family: var(--primary-font);
	color: var(--secondary-color:);
    background-color: transparent;
    border: 2px solid #202658;
    border-radius: 6px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}
.program-btn1 {
    display: inline-block;
    position: relative;
    padding: 6px 13px;
    color: #ffffff;
	font-size: 15px;
    font-weight: 500;
	font-family: var(--primary-font);
	color: var(--secondary-color:);
    background-color: #0056ff;
    border: 2px solid #0056ff;
    border-radius: 6px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}


.program-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #202658; /* <-- ADD THIS */
    z-index: -1;
    transition: width 0.6s cubic-bezier(.7, 0, .9, 1);
    transform: scale3d(3, 2, 1); /* Optional: preserve 3D scaling if needed */
    border-radius: 0 50px 50px 0;
}

.program-btn:hover::before {
    width: 100%;
}

.program-btn:hover {
    color: #ffffff;
}

.program-btn1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* Changed from left: 0 */
    width: 0%;
    height: 100%;
    background-color: #202658;
    z-index: -1;
    transition: width 0.6s cubic-bezier(.7, 0, .9, 1);
    transform: scale3d(3, 2, 1);
    border-radius: 50px 0 0 50px; /* Flip the border curve */
}

.program-btn1:hover::before {
    width: 100%;
    left: auto;
    right: 0;
}


/* .program-btn1:hover::before {
    width: 100%;
} */

.program-btn1:hover {
    color: #ffffff;
	border: 2px solid #202658;
}


/* Responsive */
@media (max-width: 768px) {
    .program-tab-layout {
        flex-direction: column;
    }
    .tab-categories {
        flex-direction: row;
        overflow-x: auto;
		width: 100%;
    }
    .tab-btn {
        flex: 1 1 auto;
        white-space: nowrap;
    }
/* 	 .program-btn {
    display: inline-block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    background-color: #0073aa;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    flex: 1;
} */
}

/* left side tabe style start */
/* Tab Container */
.tab-categories {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
/*     width: 250px; */
	width: 100% !important;
	height: fit-content;
    border: solid 1px #f2f2f2;
}

/* Tab Button Base */
.tab-btn {
    position: relative;
    background: transparent;
    border: none;
    text-align: left;
    padding: 15px 20px;
    font-size: 16px;
	font-family: var(--primary-font);
    font-weight: 500;
    color: #222;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
	border: solid 1px #f2f2f2;
}

/* Hover + Active Styles */
.tab-btn:hover,
.tab-btn.active {
    background-color: #e6f0ff;
    color: var(--primary-color);
    font-weight: 600;
}

/* Arrow mark (▶) - default position */
/* Arrow using borders */
.tab-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(310deg);
    width: 8px;
    height: 8px;
    border-right: 2px solid #6c6c6c;
    border-bottom: 2px solid #6c6c6c;
    transform-origin: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Active/Hover Arrow Animation (rotate to point down) */
.tab-btn:hover::after,
.tab-btn.active::after {
    transform: translateY(-50%) rotate(45deg);
    border-color: var(--primary-color);
}

.program-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    background: #fff;
}

.program-card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 15px;
    text-align: left;
}

/* .program-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
} */

.program-single-content {
    font-size: 15px;
	font-family: var(--primary-font);
/*     color: #444; */
	color: var(--dark-text);
	margin-bottom: 15px;
}

.program-tagline {
    margin: 15px 0;
    font-size: 15px;
    color: #333;
}

.program-meta {
    font-size: 15px;
/*     color: #555; */
	font-family: var(--primary-font);
	color: var(--dark-text);
    margin-bottom: 10px;
}
p.program-tagline {
    margin-bottom: 10px;
}
/*  */

.program-card.hidden-program {
    display: none;
}

.view-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.view-more-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-more-btn:hover {
    background-color: #2c2e45;
}
button.view-more-btn:focus {
    color: white;
     background-color: var(--primary-color);
}

/* Hidden Form Popup */
#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;
}

.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;
}

