/*CAPTCHA CSS CHANGES */
.g-recaptcha {
    display: block;
    margin-top: 20px !important;
		margin-bottom: 40px !important;
		clear: both;
}
	.gform_wrapper .gform_footer {
    margin-top: 40px !important;
}
/* Hide CAPTCHA label in Courses Form */
#gform_wrapper_3 label[for="input_3_9"] {
    display: none !important;
}
/* Hide CAPTCHA label in Enquire Now form */
#gform_wrapper_4 label[for="input_4_43"] {
    display: none !important;
}
/*FUNDING LOGO CSS CHANGES */
.funding-logos {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap; 
}
.funding-logos img {
    height: auto !important;
    max-height: 60px; /* Adjust for better scaling */
    width: auto !important;
    max-width: 200px; /* Ensures logos don’t get too large */
    object-fit: contain !important; /* Prevents cutting off logos */
		 margin-right: 20px !important; /* Adjust space between logos */
}
/* Remove margin on the last logo to prevent extra spacing */
.funding-logos img:last-child {
    margin-right: 0 !important;
}
/*JOBS & SKILLS LOGO ON FUNDING PAGE */
.size-medium.wp-image-1264 {
    width: 60% !important; 
    max-width: 220px !important; 
    height: auto !important;
		margin: 0 auto 20px auto !important;
}

/* Table Container */
.table-container {
    display: flex;
		justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .table-container { display: block !important; }
}	

/* Table Wrapper (Each Table Block) */
.table-wrapper {
    flex: 1;
    width: 100% !important;
    flex: none !important;
}

/* Table Title */
.table-title {
    background-color: #a5c5de;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
	  border-radius: 10px 10px 0 0;
		margin-bottom: 0 !important;
}

/* Table Styling */
.custom-table {
    width: 100%;
    border-collapse: collapse;
	  margin-bottom: 2rem;
}

/* Table Headers */
.custom-table th,
.custom-table td {
    background-color: rgba(209, 223, 232, 0.3);
    text-align: left;
	  vertical-align: top;
	  box-sizing: border-box;
}

/* Table Cells */
.custom-table td {
    padding: 12px;
}

/* Alternating Row Colors */
.custom-table tbody tr:nth-child(odd) {
    background-color: rgba(165, 197, 222, 0.7);
}

.custom-table tbody tr:nth-child(even) {
    background-color: #6fa3c7; /* or transparent if you prefer */
}

.custom-table tbody tr:hover {
  background-color: rgba(165, 197, 222, 0.9);
  cursor: default;
}
/* Shift "Unit Code" to the right for better alignment */
.custom-table thead th:first-child {
    padding-left: 15px; /* Adjust this value as needed */
    text-align: left;
}
/* Shift "Unit Description" to the right */
.custom-table thead th:last-child {
    padding-left: 12px; /* Adjust value as needed */
    text-align: left;
}
/* Remove this unless you *really* need it: */
.custom-table thead th:first-child {
    padding-left: 15px;
}
.custom-table thead th:last-child {
    padding-left: 12px;
}
.rounded-image .wp-block-media-text__media img {
  border-radius: 12px;
}
.postid-710 .flex > div:first-child > img[src*="see-success-stories-geneva.jpg"] {
  display: none !important;
}

details {
		font-size: 1.6rem !important;
		line-height: 4rem !important;	
}
/* Media query for details tag mobile phone */
@media screen and (max-width: 576px) {
  details {
    font-size: 2rem !important;
    line-height: 5rem !important;
  }
}
/* Media query for details tags tablet */
@media (min-width: 768px) and (max-width: 991px) {
  details {
    font-size: 2rem !important;
    line-height: 5rem !important;
  }
}
	h1, h2, h3, h4, h5, h6 {
    line-height: 1.3 !important;
}
	/* Reduce space after headings */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em !important;
}

/* Reduce space before paragraphs that follow headings */
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
    margin-top: 0.25em !important;
}
	#cta h2 {
  text-align: center;
}
#cta {
  text-align: center;
}
/* restore bullets + indent just for blocks you tag with see-list */
.see-list,
.see-list ul,
.see-list ol {
  list-style-position: outside;
  padding-left: 2em;   /* the indent */
  margin-left: 0;         /* keep margins tidy */
}
.see-list ul { list-style-type: disc; }
.see-list ol { list-style-type: decimal; }

/* nested blocks in news articles no ident */
.no-indent {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* If it's nested inside other blocks, also try: */
.wp-block-group .no-indent,
.wp-block-column .no-indent,
.wp-block-columns .no-indent {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
	/* Buttons only inside the News section */
.news-only .wp-block-button .wp-block-button__link {
  background-color: #0A67A3; /* fill */
  color: #fff;
}
.news-only .wp-block-button.is-style-outline .wp-block-button__link {
  background-color: #a5c5de !important;
  border: none;
  color: #fff !important;
}
.news-only .wp-block-button .wp-block-button__link:hover {
  background-color: #a5c5de;
}
/* Remove the built-in left/right padding so it lines up with other text */
.flush-media-text.wp-block-media-text .wp-block-media-text__content {
  padding-left: 0 !important;
  padding-right: 0 !important; /* optional */
}

/* Belt-and-braces: kill any extra left margin */
.flush-media-text.wp-block-media-text {
  margin-left: 0 !important;
}
/* Smaller font on details tag for Student of the Month */
/* style the summary text only */
.postid-289 summary,
.postid-638 summary {
  font-size: 1.2rem;
  line-height: 2rem;
}

/* style the expanded content */
.postid-289 details,
.postid-638 details {
  font-size: 1.2rem;
  line-height: 4rem;
}
/* Remove indent on media and text block News Stories */
.postid-636 .wp-block-media-text .wp-block-media-text__content,
.postid-2215 .wp-block-media-text .wp-block-media-text_content, .postid-2324 .wp-block-media-text .wp-block-media-text__content  {
  padding: 0 !important;
  margin: 0 !important;
}
/* Remove indent on nested block text News Stories */
.postid-636 #nested-block.px-4, 
.postid-2215 #nested-block.px-4, 
.postid-2324 #nested-block.px-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Padding around Media & Text image on page ID 2324 */
.postid-2324 .wp-block-media-text__media img {
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

/* Replicating tailwind for additional components */

.course-content details summary {
  font-size: 1rem !important;       /* text-base */
  line-height: 2.5rem !important;
}

/* sm: 640px */
@media (min-width: 640px) {
  .course-content details summary {
    font-size: 1.25rem !important;  /* text-xl */
    line-height: 2.5rem !important;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .course-content details summary {
    font-size: 1.875rem !important; /* text-3xl */
    line-height: 1.5em !important;
  }
}
