:root { --purple: #3e3d8b; --red: #f44336; --pale: #eeedf5; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: #111; background: #fff; font: 20px/1.5 "Source Sans 3", Arial, sans-serif; }
a { color: var(--purple); text-underline-offset: 4px; }
button, summary { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f05a28; outline-offset: 5px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 24px; }
ul { padding-left: 28px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; letter-spacing: 0; }
h2 { font-size: 35px; line-height: 1.35; margin: 0 0 40px; }
h3 { font-size: 30px; line-height: 1.3; margin: 0 0 20px; }
.wrap { width: calc(100% - 64px); margin-inline: auto; }
section { scroll-margin-top: 24px; }
.section { padding-block: 54px; }
.heading { position: relative; padding-bottom: 18px; }
.heading::after { content: ""; position: absolute; bottom: 0; left: 0; width: 60%; max-width: 235px; height: 2px; background: var(--red); }
.heading.center { width: fit-content; max-width: 100%; margin-inline: auto; text-align: center; }
.heading.center::after { left: 20%; }
.course-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 17px 32px 12px; }
.brand { flex: 0 0 96px; }
.brand img { width: 96px; aspect-ratio: 1532 / 1160; object-fit: contain; }
.course-nav { display: flex; align-items: center; gap: 27px; font-size: 18px; font-weight: 600; }
.course-nav a { color: #111; text-decoration: none; padding-block: 8px; white-space: nowrap; }
.course-nav > a:first-child { border-bottom: 3px solid #f05a28; }
.course-nav .register { color: #fff; background: var(--red); padding: 10px 24px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin-block: 5px; background: var(--purple); }
.nav-details { position: relative; }
.nav-details summary { list-style: none; display: flex; align-items: center; gap: 8px; padding-block: 8px; }
summary::-webkit-details-marker { display: none; }
.nav-details summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); margin-top: -4px; }
.nav-details div { position: absolute; z-index: 5; top: 100%; left: -16px; min-width: 200px; padding: 12px 16px; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 12px #0002; }
.nav-details div a { display: block; }
.hero { position: relative; min-height: 577px; display: flex; align-items: center; color: #fff; background: url('../img/digital-twins-2025/448c2.png') center / cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #3e3d8b 11%, #4b48a5e8 34%, #4b48a580 58%, transparent 100%); }
.hero .wrap { position: relative; padding-block: 75px; }
.hero h1 { font-size: 35px; line-height: 58px; font-weight: 400; max-width: 609px; margin: 0 0 28px; }
.hero h1 strong { display: block; font-weight: 700; }
.hero p { margin: 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: 24px; }
.hero-links a { color: #fff; font-weight: 600; }
:is(.gaibd-page, .aep-page) .instructor > img { aspect-ratio: 437 / 425; object-fit: contain; }
:is(.gaibd-page, .aep-page) .biography-photo { aspect-ratio: 944 / 425; }
:is(.gaibd-page, .aep-page) .biography-copy { margin-top: 100px; }
:is(.gaibd-page, .aep-page) #overview .two-column { align-items: start; }
.aep-partner { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.aep-partner img { width: 132px; height: auto; }
.aep-page #coordinators > h3 { margin-top: 36px; }
.aep-students { display: flex; flex-wrap: wrap; gap: 20px 60px; padding: 0; list-style: none; }
.aep-page #content .accordion-layout { align-items: stretch; }
.aep-page #content .accordions { display: flex; flex-direction: column; gap: 10px; }
.aep-page #content .accordions details { flex: 0 0 auto; padding: 16px 20px; }
.aep-page #content .accordions details ul { margin-top: 12px; }
.aep-page #content .accordion-layout > img {
    width: 100%;
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: center 28%;
}
#faq .accordion-layout { align-items: stretch; }
#faq .accordions { display: flex; flex-direction: column; gap: 8px; }
#faq .accordions details { flex: 0 0 auto; padding: 14px 18px; border-radius: 7px; }
#faq .accordions details p { margin-top: 12px; font-size: 17px; line-height: 1.45; }
#faq .accordion-layout > img {
    width: 100%;
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}
.background { padding-top: 28px; }
.background h2 { margin-bottom: 24px; }
.background-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.background-grid figure { position: relative; isolation: isolate; overflow: hidden; margin: 0; aspect-ratio: 288 / 473; background: var(--purple); }
.background-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .35s ease; }
.background-grid figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 28px 24px; color: #fff; background: rgba(62, 61, 139, .58); font-size: clamp(14px, 1.2vw, 20px); font-weight: 600; line-height: 1.28; opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
.background-card:hover img, .background-card:focus-visible img { transform: scale(1.035); opacity: .9; }
.background-card:hover figcaption, .background-card:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.background-card:focus-visible { outline: 4px solid #f05a28; outline-offset: -4px; }
.background-icon { display: block; width: 34px; height: 34px; color: currentColor; }
.background-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.instructors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.instructor { display: flex; align-items: flex-start; gap: 24px; border: 1px solid #b5b5b5; border-radius: 28px; padding: 32px; min-height: 372px; }
.instructor > img { width: 45%; aspect-ratio: 262 / 307; object-fit: cover; border-radius: 28px; }
.instructor h3 { font-weight: 500; margin-bottom: 20px; }
.instructor p { margin: 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 778fr) minmax(0, 533fr); gap: 29px; align-items: center; }
.two-column > img { width: 100%; aspect-ratio: 533 / 451; object-fit: cover; border-radius: 17px; }
/* Keep certification overview imagery proportional to the available laptop viewport. */
#overview .two-column { align-items: start; }
#overview .two-column > img {
    width: 100%;
    height: clamp(320px, 38vh, 420px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}
@media (min-width: 1001px) and (max-height: 850px) {
    #overview .two-column > img { height: clamp(360px, 52vh, 410px); }
}
@media (min-width: 1500px) and (min-height: 851px) {
    #overview .two-column { align-items: start; }
    #overview .two-column > img { height: clamp(380px, 40vh, 480px); min-height: 0; }
}
.prose p, .prose li { text-align: justify; }
.prose p:last-child { margin-bottom: 0; }
.highlights { background: var(--pale); border-radius: 17px; padding: 54px 50px 76px; }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 44px; margin-top: 62px; }
.highlight { border: 1px solid var(--purple); border-radius: 17px; background: #3e3d8b17; min-height: 223px; padding: 32px 50px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; font-weight: 600; line-height: 1.25; }
.highlight img { align-self: flex-start; }
.outcome .two-column > img { border-radius: 0; aspect-ratio: 500 / 356; object-fit: contain; }
.outcome ul { margin: 0 0 24px; }
#outcome .two-column { align-items: start; }
#outcome .two-column > img {
    width: 100%;
    height: clamp(280px, 36vh, 400px);
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center top;
}
@media (min-width: 1500px) and (min-height: 851px) {
    #outcome .two-column > img { height: clamp(340px, 34vh, 420px); }
}
.accordion-layout { display: grid; grid-template-columns: minmax(0, 743fr) minmax(0, 576fr); gap: 22px; align-items: stretch; }
.accordion-layout > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.accordions { display: grid; gap: 12px; }
.accordions details { border-radius: 8px; background: #efefef; padding: 20px 24px; }
.accordions summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; list-style: none; font-weight: 600; }
.accordions summary::after { content: ""; flex: 0 0 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); margin-right: 5px; }
.accordions details[open] summary::after { transform: rotate(225deg); }
.accordions details p, .accordions details ul { margin: 16px 0 0; }
.biography { background: var(--purple); color: #fff; padding-block: 68px 90px; }
.biography-layout { display: flex; align-items: flex-start; }
.biography-photo { width: 65.5%; aspect-ratio: 877 / 453; object-fit: cover; object-position: top; border-radius: 17px; }
.biography-copy { width: 47%; margin-left: -12.5%; margin-top: 170px; padding: 34px 50px; background: var(--purple); border-radius: 17px; }
.biography-copy h2 { font-size: 30px; margin-bottom: 24px; }
.biography-copy summary { color: #ff7466; font-weight: 600; list-style: none; }
.profile-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; font-size: 16px; }
.profile-links img { width: 246px; }
.profile-links a { color: #fff; }
.instructor-biography { margin-top: 24px; }
.instructor-biography p { margin-top: 16px; }
.instructor-biography a { color: #fff; }
.fees { border-radius: 17px; background: var(--pale); padding: 40px 25px; }
.fees h3 { font-size: 35px; text-align: center; margin: 35px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 20px; background: #fff; }
th, td { padding: 20px 28px; text-align: left; border: 1px solid #ddd; }
th { background: var(--purple); color: #fff; font-weight: 400; }
thead th:first-child { border-top-left-radius: 8px; }
thead th:last-child { border-top-right-radius: 8px; }
.foreign td { background: var(--purple); color: #fff; }
.foreign a { color: #fff; }
.fees .footnotes { margin-top: 24px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.fees .footnotes p { margin-bottom: 6px; }
.previous > p { text-align: center; }
.previous > p a { color: #111; text-decoration-color: currentColor; }
.previous > p a:hover, .previous > p a:focus-visible { color: #111; text-decoration-thickness: 2px; }
.statistics { width: min(1174px, 100%); margin: 45px auto 0; }
.about-iim { background: var(--purple); color: #fff; padding-block: 55px; }
.about-iim li, .centre li { margin-bottom: 24px; }
.centre { display: grid; grid-template-columns: minmax(0, 639fr) minmax(0, 670fr); gap: 30px; align-items: start; }
.centre > img {
    width: 100%;
    height: clamp(440px, 46vw, 540px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 17px;
}
@media (min-width: 1500px) {
    .centre > img { height: clamp(360px, 38vh, 460px); }
}
.coordinators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.coordinator { padding: 19px 14px; background: #efefef; border-radius: 17px; }
.coordinator img { width: 100%; aspect-ratio: 390 / 235; object-fit: cover; object-position: center 25%; border-radius: 17px; }
.coordinator h3 { font: 600 20px/1.5 "Source Sans 3", Arial, sans-serif; margin: 22px 0 14px; }
.coordinator p { margin: 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; background: #eef4fc; }
.contact-copy { padding: 49px 38px; }
.contact-row { display: flex; align-items: center; gap: 20px; margin-top: 44px; }
.contact-row .symbol { display: grid; place-items: center; width: 70px; height: 70px; flex-shrink: 0; border-radius: 50%; color: var(--purple); background: #dedff4; }
.contact-row .symbol svg { width: 36px; height: 36px; fill: currentColor; }
.contact-row p { margin: 0; }
.contact-row a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.map-link { display: block; }
.map-link img { width: 100%; height: 100%; min-height: 509px; object-fit: cover; }
.footer { margin-top: 50px; min-height: 257px; padding-block: 70px; background: #272566 url('../img/digital-twins-2025/e7cee.png') center / cover; color: #fff; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-logo { width: 151px; height: 114px; object-fit: contain; }
.footer p { font-size: 14px; margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 16px; }
.footer a { color: #fff; }
@media (max-width: 1250px) {
    .course-nav { gap: 16px; font-size: 16px; }
    .instructor { padding: 24px; gap: 20px; }
    .instructor h3 { font-size: 26px; }
    .biography-copy { padding-inline: 32px; }
}
@media (max-width: 1000px) {
    .wrap { width: calc(100% - 48px); }
    .course-header { flex-wrap: wrap; padding: 12px 24px; min-height: 88px; gap: 0; }
    .brand, .brand img { width: 80px; flex-basis: 80px; }
    .nav-toggle { display: block; }
    .course-nav { display: none; width: 100%; padding: 18px 0; flex-wrap: wrap; gap: 12px 24px; }
    .course-nav.is-open { display: flex; }
    .instructors { gap: 24px; }
    .instructor { flex-direction: column; }
    .instructor > img { width: 100%; max-width: 262px; }
    .two-column, .centre { grid-template-columns: 1fr 1fr; }
    .highlights { padding: 40px 24px; }
    .highlight-grid { gap: 20px; margin-top: 32px; }
    .highlight { padding: 24px; }
    .biography-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
    .biography-photo { width: 100%; aspect-ratio: 1; }
    .biography-copy { width: 100%; margin: 0; padding: 0; }
    :is(.gaibd-page, .aep-page) .biography-copy { margin-top: 0; }
    .coordinators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-copy { padding: 30px 24px; }
    .contact-row { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    body { font-size: 18px; }
    .wrap { width: calc(100% - 32px); }
    .course-header { padding-inline: 16px; }
    h2, .fees h3 { font-size: 28px; }
    h3 { font-size: 25px; }
    .section { padding-block: 36px; }
    .hero { min-height: 580px; background-position: 60% center; }
    .hero::before { background: #3e3d8bbd; }
    .hero .wrap { padding-block: 50px; }
    .hero h1 { max-width: 100%; font-size: 30px; line-height: 1.5; overflow-wrap: anywhere; }
    .hero p { font-size: 18px; }
    .background-grid { width: 100%; max-width: 100%; grid-template-columns: repeat(5, 180px); overflow-x: auto; overscroll-behavior-inline: contain; }
    .background-grid figcaption { font-size: 16px; padding: 35px 16px 16px; }
    .instructors, .two-column, .centre, .highlight-grid, .accordion-layout, .biography-layout, .contact { grid-template-columns: 1fr; }
    .instructor { min-height: 0; align-items: center; border-radius: 20px; }
    .instructor h3 { margin-top: 4px; }
    .instructor > img { border-radius: 20px; }
    .prose p, .prose li { text-align: left; }
    #overview .two-column > img { height: clamp(230px, 68vw, 320px); }
    #outcome .two-column > img { height: clamp(240px, 62vw, 320px); }
    .highlights { padding: 32px 20px; }
    .highlight { min-height: 195px; }
    .accordion-layout > img { height: 340px; }
    .accordions details { padding: 18px; }
    .biography { padding-block: 36px; }
    .biography-photo { aspect-ratio: 877 / 453; }
    .biography-copy { padding-top: 8px; }
    .fees { padding: 28px 16px; }
    .fees table { min-width: 740px; font-size: 18px; }
    .fees .bulk { min-width: 460px; }
    th, td { padding: 16px; }
    .fees .footnotes { font-size: 16px; }
    .coordinators { grid-template-columns: 1fr; gap: 20px; }
    .contact-row { flex-wrap: nowrap; gap: 16px; margin-top: 30px; }
    .contact-row .symbol { width: 52px; height: 52px; font-size: 24px; }
    .contact-row .symbol svg { width: 27px; height: 27px; }
    .contact-copy { padding: 28px 18px; }
    .contact-row a { font-size: 16px; }
    .map-link img { min-height: 0; aspect-ratio: 650 / 509; }
    .centre > img { height: clamp(320px, 90vw, 440px); }
    .aep-page #content .accordion-layout > img { height: clamp(280px, 72vw, 350px); min-height: auto; }
    #faq .accordion-layout > img { height: clamp(280px, 72vw, 350px); min-height: auto; }
    .footer { padding-block: 36px; }
    .footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
