/* ================================================
   IB Diploma Programme Page — Additional Styles
   Builds on top of /about/about.css
   ================================================ */

/* ---- Anniversary badge (IB toolkit style) ---- */
.ib-anniv {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 240px;
    padding: 20px 24px 22px;
    border-radius: 12px;
    color: #fff;
    background: #1A5DB8;
    box-shadow: 0 10px 26px rgba(0, 45, 72, 0.35);
}

.ib-anniv__top {
    font-family: Mardoto-Medium, sans-serif;
    font-style: italic;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
}

.ib-anniv__row {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.ib-anniv__num,
.ib-anniv__years {
    font-family: Mardoto-Black, sans-serif;
    font-style: italic;
    font-size: 42px;
    line-height: 1;
    color: #fff;
}

.ib-anniv__sub {
    font-family: Mardoto-Medium, sans-serif;
    font-style: italic;
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
}

@media (max-width: 900px) {
    .ib-anniv {
        width: 200px;
        padding: 16px 20px 18px;
        top: 14px;
        right: 14px;
    }
    .ib-anniv__num,
    .ib-anniv__years {
        font-size: 34px;
    }
    .ib-anniv__top {
        font-size: 13px;
    }
    .ib-anniv__sub {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .ib-anniv {
        position: static;
        margin: 0 auto 16px;
    }
}

/* ---- Heading + pills row ---- */
.ib-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ib-heading-row h3 {
    margin: 0;
}

.ib-heading-row .qa-pills {
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---- Subject Groups Grid ---- */
.ib-subjects-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 28px;
}

.ib-subject-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.ib-subject-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(4, 167, 161, 0.15);
    font-family: Mardoto-Black, sans-serif;
    font-size: 22px;
    color: #04A7A1;
    flex-shrink: 0;
}

.ib-subject-item strong {
    font-family: Mardoto-Bold, sans-serif;
    font-size: 22px;
    color: #002D48;
    display: block;
}

.ib-subject-item p {
    font-family: Mardoto-Regular, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

.ib-subjects-note {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 45, 72, 0.1);
    font-family: Mardoto-Regular, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(0, 45, 72, 0.8);
    font-style: italic;
}

/* ---- DP Model Card ---- */
.ib-dp-model-card {
    background: linear-gradient(135deg, rgba(215, 241, 240, 0.3), rgba(0, 45, 72, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ib-dp-model-card img {
    object-fit: contain;
    min-height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* ---- Learner Profile Grid ---- */
.ib-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ib-profile-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(0, 45, 72, 0.08);
    border-radius: 16px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ib-profile-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.ib-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(4, 167, 161, 0.1);
    font-size: 20px;
    flex-shrink: 0;
}

.ib-profile-item strong {
    font-family: Mardoto-Bold, sans-serif;
    font-size: 15px;
    color: #002D48;
    display: block;
    margin-bottom: 2px;
}

.ib-profile-item p {
    font-family: Mardoto-Regular, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* ---- Learner Profile Image Card ---- */
.ib-profile-img-card {
    background: linear-gradient(135deg, rgba(215, 241, 240, 0.3), rgba(0, 45, 72, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.ib-profile-img-card img {
    object-fit: contain;
    min-height: auto;
    max-width: 90%;
    max-height: 90%;
}

/* ---- Quantum Subjects Dark Card ---- */
.ib-quantum-subjects {
    background: #002D48;
    border-color: transparent;
}

.ib-quantum-subjects h2 {
    color: #fff;
}

.ib-quantum-subjects p {
    color: rgba(255, 255, 255, 0.8);
}

/* ---- Gallery Grid ---- */
.ib-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ib-gallery__item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ib-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ib-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ib-gallery__item:hover img {
    transform: scale(1.06);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (min-width: 1280px) and (max-width: 1919px) {
    .ib-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    .ib-profile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .ib-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .ib-profile-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ib-profile-item {
        padding: 14px;
    }
}

@media (max-width: 767px) {
    .ib-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ib-gallery__item {
        border-radius: 16px;
    }
    .ib-profile-grid {
        grid-template-columns: 1fr;
    }
    .ib-profile-item {
        padding: 14px;
    }
    .ib-dp-model-card {
        padding: 16px;
    }
    .ib-profile-img-card {
        padding: 20px;
    }
}

/* ================================================
   World Map — Where Our Graduates Study
   ================================================ */
.ib-world {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 45, 72, 0.1);
    position: relative;
}

.ib-world__map-wrap {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(4, 167, 161, 0.08), rgba(0, 45, 72, 0.04));
    padding: 12px;
    overflow: hidden;
}

.ib-world__map {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
}

.ib-world__lines path {
    fill: none;
    stroke: #04A7A1;
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
    stroke-linecap: round;
    opacity: 0.55;
    animation: ibWorldDash 28s linear infinite;
}

@keyframes ibWorldDash {
    to {
        stroke-dashoffset: -200;
    }
}

/* Quantum College home marker — blue orb (dual logo style) */
.ib-world__home-pulse {
    fill: rgba(46, 143, 216, 0.4);
    transform-box: fill-box;
    transform-origin: center;
    animation: ibWorldPulse 2.4s ease-out infinite;
}

.ib-world__home-pulse--2 {
    animation-delay: 1.2s;
}

.ib-world__home-dot,
.ib-world__home-dot--sat {
    fill: url(#ibQuantumOrb);
    filter: drop-shadow(0 1px 2px rgba(0, 45, 72, 0.35));
}

.ib-world__home-shine,
.ib-world__home-shine--sat {
    fill: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.ib-world__home-label {
    fill: #002D48;
    font-family: Mardoto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

@keyframes ibWorldPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Country markers */
.ib-world__marker {
    cursor: pointer;
    outline: none;
}

.ib-world__marker-pulse {
    fill: rgba(4, 167, 161, 0.25);
    transition: fill 0.25s ease;
}

.ib-world__marker-dot {
    fill: #04A7A1;
    stroke: #fff;
    stroke-width: 2;
    transition: transform 0.25s ease, fill 0.25s ease;
    transform-origin: center;
    transform-box: fill-box;
}

.ib-world__marker-label {
    fill: #002D48;
    font-family: Mardoto-Bold, sans-serif;
    font-size: 18px;
    font-weight: 700;
    pointer-events: none;
}

.ib-world__marker:hover .ib-world__marker-pulse,
.ib-world__marker:focus-visible .ib-world__marker-pulse {
    fill: rgba(4, 167, 161, 0.5);
}

.ib-world__marker:hover .ib-world__marker-dot,
.ib-world__marker:focus-visible .ib-world__marker-dot {
    transform: scale(1.25);
}

.ib-world__marker.is-selected .ib-world__marker-pulse {
    fill: rgba(4, 167, 161, 0.6);
}

.ib-world__marker.is-selected .ib-world__marker-dot {
    fill: #002D48;
    transform: scale(1.4);
}

.ib-world__hint {
    margin: 10px 0 0;
    text-align: center;
    font-family: Mardoto-Regular, sans-serif;
    font-size: 14px;
    color: rgba(0, 45, 72, 0.65);
    font-style: italic;
}

/* University panel */
.ib-world__panel {
    margin-top: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 26px 24px;
    border: 1px solid rgba(0, 45, 72, 0.08);
    box-shadow: 0 8px 24px rgba(0, 45, 72, 0.06);
    position: relative;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-width: 0;
    transition: max-height 0.4s ease, opacity 0.25s ease, padding 0.4s ease, margin 0.4s ease, border-width 0.4s ease;
}

.ib-world.is-active .ib-world__panel {
    max-height: 600px;
    opacity: 1;
    margin-top: 14px;
    padding: 22px 26px 24px;
    border-width: 1px;
}

.ib-world__panel-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 45, 72, 0.06);
    color: #002D48;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ib-world__panel-close:hover {
    background: rgba(0, 45, 72, 0.12);
}

.ib-world__panel-title {
    margin: 0 0 14px;
    padding-right: 40px;
    font-family: Mardoto-Bold, sans-serif;
    font-size: 22px;
    color: #002D48;
}

.ib-world__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.ib-world__panel-list li {
    font-family: Mardoto-Regular, sans-serif;
    font-size: 15px;
    color: #002D48;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.ib-world__panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #04A7A1;
}

@media (max-width: 768px) {
    .ib-world__panel-list {
        grid-template-columns: 1fr;
    }
    .ib-world__home-label,
    .ib-world__marker-label {
        font-size: 22px;
    }
}
