/*
 * WordPress-specific styles on top of site.css (the old compiled Tailwind).
 * 1. Utilities the templates use that the old build did not include.
 * 2. Components that were React-only on the old site (dropdown, accordion, filter, timeline, lightbox).
 */

/* 0. Accessibility (IS 5568 / WCAG 2.1 AA): the old brand blue (#0081c6, 4.24:1) and green (#008a5e, 4.38:1)
      were just under the 4.5:1 contrast needed for normal-size text. Slightly deeper shades, visually almost identical. */
:root {
	--color-blue: #0079ba;   /* 4.73:1 on white */
	--color-green: #008058;  /* 4.97:1 on white */
	--color-orange-text: #b35400; /* 5.02:1 on white, 4.6:1 on #f5f5f5 */
}
/* Orange text on light backgrounds (roles, card headings) uses a deeper shade. The brand orange (#f58c34, 2.4:1 on white)
   stays for buttons, decorations, and headlines on images or blue, where the darker shade would read worse. */
.text-orange { color: var(--color-orange-text); }
.bg-blue .text-orange, .text-white .text-orange, h1 .text-orange, .col-homeHero .text-orange, .col-daromaCTABlock .text-orange { color: var(--color-orange); }
/* Bold text inside white-on-blue prose kept the dark prose colour (2.2:1 on blue). */
.prose-white strong, .prose-white b { color: inherit; }
/* Pause/play button on autoplay carousels (WCAG 2.2.2). Top corner: the partner logos strip covers the hero's bottom corner. */
.swiper > .dt-pause { position: absolute; z-index: 20; top: .75rem; inset-inline-end: .75rem; width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 9999px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; line-height: 0; }
.swiper > .dt-pause:hover { background: rgba(0, 0, 0, .75); }
.swiper > .dt-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0079ba; }
.swiper > .dt-pause svg { width: 100%; height: 100%; }

/* 1. Missing utilities */
.bg-grey-border { background-color: var(--color-grey-border, #d9d9d9); }
.rounded-t-2xl { border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.h-24 { height: 6rem; }
.h-40 { height: 10rem; }
.space-y-3 > :not(:last-child) { margin-bottom: .75rem; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
@media (min-width: 48rem) {
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
	.lg\:flex-row-reverse { flex-direction: row-reverse; }
	.dt-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
	.dt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dt-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.dt-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.dt-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Accessibility */
.dt-skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200; background: #fff; color: var(--color-blue, #0081c6); padding: .75rem 1.25rem; border-radius: 1rem; font-weight: 700; }
.dt-skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--color-orange, #f39200); outline-offset: 2px; }

/* 2a. Main menu dropdown */
.dt-has-dropdown { position: relative; }
.dt-dropdown { display: none; }
.dt-has-dropdown.is-open > .dt-dropdown { display: block; }
.dt-dropdown ul { list-style: none; margin: 0; padding: .75rem; }
.dt-dropdown__link { display: block; padding: .5rem .75rem; border-radius: .75rem; font-size: 1.125rem; font-weight: 500; white-space: nowrap; }
.dt-dropdown__link:hover, .dt-dropdown__link:focus-visible { background: var(--color-blue-pale, #f2f8fc); }
@media (min-width: 64rem) {
	.dt-has-dropdown:hover > .dt-dropdown, .dt-has-dropdown:focus-within > .dt-dropdown { display: block; }
	.dt-dropdown { position: absolute; top: 100%; inset-inline-start: -1rem; min-width: 16rem; background: #fff; border-radius: 1.5rem; box-shadow: 0 10px 40px rgba(0, 129, 198, .15); z-index: 40; }
}

/* Mobile menu */
@media (max-width: 63.99rem) {
	#navbar-collapse.is-open { display: block; }
	#navbar-collapse.is-open > .cta-btn { display: inline-flex; }
}
.collapse-toggle[aria-expanded="true"] .dt-icon-open { display: none; }
.collapse-toggle[aria-expanded="true"] .dt-icon-close { display: inline; }

/* 2b. Accordion (<details>) */
.dt-accordion > summary { list-style: none; }
.dt-accordion > summary::-webkit-details-marker { display: none; }
.dt-accordion__icon { transition: transform .2s; flex-shrink: 0; }
.dt-accordion[open] .dt-accordion__icon { transform: rotate(180deg); }

/* 2c. Filter buttons (mentors, stories) */
.dt-filter { border: 2px solid var(--color-blue, #0081c6); color: var(--color-blue, #0081c6); background: #fff; border-radius: 999px; padding: .4rem 1.25rem; font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.dt-filter:hover, .dt-filter.is-active { background: var(--color-blue, #0081c6); color: #fff; }
.dt-filter-item[hidden] { display: none !important; }

/* 2d. Timeline */
.dt-timeline { list-style: none; margin: 2rem auto; padding: 0; max-width: 56rem; position: relative; }
.dt-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: .6rem; width: 3px; background: var(--color-green, #008a5e); border-radius: 3px; }
.dt-timeline__item { position: relative; padding-inline-start: 3rem; padding-bottom: 2rem; }
.dt-timeline__dot { position: absolute; inset-inline-start: 0; top: .35rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 4px solid var(--color-blue, #0081c6); }

/* 2e. Masonry gallery */
.dt-masonry { column-count: 2; column-gap: 1rem; }
@media (min-width: 64rem) {
	.dt-masonry.dt-cols-3 { column-count: 3; }
	.dt-masonry.dt-cols-4 { column-count: 4; }
	.dt-masonry.dt-cols-5 { column-count: 5; }
}
.dt-masonry > a { break-inside: avoid; }

/* 2f. Lightbox */
.dt-lightbox-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 1rem; }
.dt-lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: 1rem; }
.dt-lightbox-overlay button { position: absolute; top: 1rem; inset-inline-end: 1rem; color: #fff; background: none; border: 0; font-size: 2rem; cursor: pointer; }

/* 2g. Decorative line draws itself */
.dt-draw path { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 2.5s ease; }
.dt-draw.is-visible path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
	.dt-draw path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
	.animate-spin-30s { animation: none; }
}

/* Embeds */
.dt-embed iframe { max-width: 100%; border: 0; }
.dt-embed iframe[src*="youtube"] { aspect-ratio: 16 / 9; width: 100%; height: auto; border-radius: 2rem; }

/* Swiper buttons are <button> here; reset native styles */
.dt-prev, .dt-next { padding: 0; }
.dt-prev.swiper-button-disabled, .dt-next.swiper-button-disabled { opacity: .35; cursor: default; }

/* WordPress core alignment classes inside rich text */
.prose .alignleft { float: left; margin-inline-end: 1.5rem; }
.prose .alignright { float: right; margin-inline-start: 1.5rem; }
.prose .aligncenter { display: block; margin-inline: auto; }

/* Cookie consent banner */
.dt-consent { position: fixed; inset-inline: 1rem; bottom: 1rem; z-index: 250; max-width: 40rem; margin-inline: auto; background: #fff; color: #222; border-radius: 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); padding: 1rem 1.25rem; font-size: 1rem; }
.dt-consent[hidden] { display: none; }
.dt-consent a { color: var(--color-blue); text-decoration: underline; }
.dt-consent__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.dt-consent__btn { border: 2px solid var(--color-blue); color: var(--color-blue); background: #fff; border-radius: 999px; padding: .4rem 1.25rem; font-weight: 600; cursor: pointer; }
.dt-consent__btn--accept { background: var(--color-blue); color: #fff; }
/* Manual item cards (Umbraco B_ItemsList) as on the old site: partners, mentors, banks. */
.dt-ilist { display: grid; gap: 1rem; grid-template-columns: repeat(var(--m, 1), minmax(0, 1fr)); }
@media (min-width: 64rem) { .dt-ilist { grid-template-columns: repeat(var(--d, 1), minmax(0, 1fr)); } }
@media (min-width: 80rem) { .dt-ilist { gap: 2rem; } }
.dt-icard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 48rem) { .dt-icard { margin-bottom: 4rem; } }
.dt-icard--above { text-align: center; }
.dt-icard--row { padding: 2.5rem 1rem; }
@media (min-width: 40rem) { .dt-icard--row { flex-direction: row; column-gap: 1rem; } .dt-icard--row.dt-rev { flex-direction: row-reverse; } }
@media (min-width: 48rem) { .dt-icard--row { padding-inline: 3rem; } }
@media (min-width: 80rem) { .dt-icard--row { padding-inline: 8rem; column-gap: 6rem; } }
.dt-icard--video { padding: 1rem 1rem 1.5rem; margin-bottom: 0; text-align: center; }
.dt-icard__img { position: relative; width: 6rem; aspect-ratio: 1; flex-shrink: 0; }
@media (min-width: 48rem) { .dt-icard__img { width: 8rem; } }
.dt-icard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dt-icard__body { flex: 1; width: 100%; }
.dt-icard__text { white-space: pre-wrap; font-size: 1rem; text-align: center; }
@media (min-width: 80rem) { .dt-icard__text { text-align: justify; } }
@media (min-width: 96rem) { .dt-icard__text { font-size: 1.25rem; } }
@media (min-width: 96rem) { .\32 xl\:px-16 { padding-inline: 4rem; } } /* founders card, missing from the old build */
