.president-widget {
    --president-blue: #0b4a9b;
    --president-blue-dark: #062d66;
    --president-soft: #edf5ff;
    --president-line: #d7e7fb;
    --president-text: #061f46;
    --president-muted: #587091;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 24px 0 12px;
    color: var(--president-text);
    font-family: Quicksand, sans-serif;
    background:
        radial-gradient(circle at 47% 0%, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, #eff7ff 0%, #e8f3ff 100%);
}

.president-widget::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1)),
        var(--president-bg);
    background-position: center;
    background-size: cover;
    opacity: 0.08;
    filter: saturate(0.6);
}

.president-widget::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(49, 128, 222, 0.1), transparent 19%),
        radial-gradient(circle at 88% 42%, rgba(49, 128, 222, 0.08), transparent 20%),
        linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.35) 49% 51%, transparent 51%);
}

.president-widget__overlay {
    display: none;
}

.president-widget .container {
    max-width: 90%;
}

@media (min-width: 1700px) {
    .president-widget .container {
        max-width: 1450px;
    }
}

.president-widget__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(286px, 1.08fr) minmax(276px, 0.9fr) minmax(300px, 1.08fr);
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
}

.president-gallery,
.president-message,
.president-portrait {
    min-width: 0;
}

.president-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d5fd3;
    color: #071f44;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.president-section-heading__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #cbdff6;
    border-radius: 7px;
    color: var(--president-blue);
    background: #fff;
    box-shadow: 0 8px 18px rgba(41, 91, 154, 0.1);
    font-size: 12px;
}

.president-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 9px;
}

.president-photo-grid__item {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(34, 79, 135, 0.13);
}

.president-photo-grid__item:first-child {
    grid-column: 1 / -1;
    grid-row: span 2;
}

.president-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.president-photo-grid__item:hover img {
    transform: scale(1.035);
}

.president-gallery__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: max-content;
    max-width: 100%;
    min-height: 34px;
    margin: 16px auto 0;
    padding: 0 18px;
    border: 1px solid #dce9fb;
    border-radius: 999px;
    color: var(--president-blue);
    background: #fff;
    box-shadow: 0 12px 26px rgba(43, 95, 163, 0.16);
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
}

.president-gallery__button::before {
    content: "\f03e";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 13px;
}

.president-gallery__button i {
    font-size: 14px;
}

.president-message {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(35, 82, 142, 0.15);
    backdrop-filter: blur(8px);
}

.president-message__quote {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: #0a64d4;
    background: #edf5ff;
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.president-message h2 {
    margin: 0 0 7px;
    color: #061f46;
    font-family: inherit;
    font-size: clamp(22px, 1.55vw, 28px);
    font-weight: 800;
    line-height: 1.12;
}

.president-message h3 {
    margin: 8px 0 0;
    color: #071f44;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
}

.president-message__rule {
    width: 64px;
    height: 3px;
    margin: 10px 0 13px;
    border-radius: 999px;
    background: #0d5fd3;
}

.president-message__body p {
    margin: 0 0 8px;
    color: #132b50;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.president-message__closing {
    display: block;
    margin-top: 7px;
    color: #071f44;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
}

.president-message__closing::after {
    content: "";
    display: none;
}

.president-message__signature {
    margin-top: 10px;
    color: #0d5fd3;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(24px, 1.7vw, 32px);
    font-weight: 500;
    line-height: 1;
}

.president-message__title {
    margin-top: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid #cfdff2;
    color: #0d5fd3;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.president-message__title::after {
    content: "";
    display: block;
    width: 16px;
    height: 8px;
    margin: 8px auto -15px;
    border-bottom: 1px solid #93a7c4;
    border-left: 1px solid #93a7c4;
    transform: rotate(-45deg);
    background: #fff;
}

.president-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 17px;
}

.president-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--president-blue);
    background: #fff;
    box-shadow: 0 10px 22px rgba(34, 79, 135, 0.13);
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.president-socials a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(34, 79, 135, 0.18);
}

.president-portrait {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 9px;
    background: var(--president-blue-dark);
    box-shadow: 0 18px 42px rgba(17, 57, 113, 0.2);
}

.president-portrait__image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #dbe8f7;
}

.president-portrait__image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 19, 48, 0.28));
}

.president-portrait__image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
}

.president-portrait__plaque {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    display: grid;
    min-width: 126px;
    padding: 6px 14px 7px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 207, 112, 0.36);
    border-radius: 8px;
    color: #ffd37c;
    text-align: center;
    background: rgba(23, 32, 46, 0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.president-portrait__plaque small,
.president-portrait__plaque strong {
    font-family: inherit;
}

.president-portrait__plaque small {
    color: #ffd37c;
    font-size: 9px;
    font-weight: 700;
}

.president-portrait__plaque strong {
    color: #ffd37c;
    font-size: 13px;
    font-weight: 800;
}

.president-program {
    color: #fff;
    background: linear-gradient(180deg, #073a80 0%, #062d66 100%);
}

.president-program__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 14px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.president-program__label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.president-program__label span {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #072a62;
    background: #ffd478;
    font-size: 16px;
}

.president-program__label strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.president-program__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.president-program__bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 11px 14px 13px;
}

.president-program__bottom span,
.president-program__bottom strong,
.president-program__bottom em {
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-style: normal;
}

.president-program__bottom span {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.95;
}

.president-program__bottom strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.president-program__bottom em {
    opacity: 0.82;
    text-align: right;
}

.president-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(35, 82, 142, 0.14);
    backdrop-filter: blur(8px);
}

.president-stat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 0 18px;
}

.president-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: #cfdeef;
}

.president-stat__icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--president-blue);
    background: #ddecff;
    font-size: 19px;
}

.president-stat:nth-child(2) .president-stat__icon {
    color: #f28c20;
    background: #fff0dc;
}

.president-stat:nth-child(3) .president-stat__icon {
    color: #17a95d;
    background: #ddf8e9;
}

.president-stat:nth-child(4) .president-stat__icon {
    color: #7236e5;
    background: #eee4ff;
}

.president-stat:nth-child(5) .president-stat__icon {
    color: #e53142;
    background: #ffe4e7;
}

.president-stat strong,
.president-stat span {
    display: block;
    color: var(--president-text);
    font-family: inherit;
}

.president-stat strong {
    font-size: clamp(19px, 1.25vw, 25px);
    font-weight: 800;
    line-height: 1;
}

.president-stat span {
    margin-top: 5px;
    font-size: 10px;
    font-weight: 700;
}

.president-widget--light {
    padding: 26px 0 18px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96) 34%, #eef5ff 100%);
}

.president-widget--light .container {
    width: min(1440px, calc(100% - 32px));
    max-width: none;
}

.president-widget--light::before {
    opacity: 0;
    background-image: none;
}

.president-widget--light::after {
    background:
        radial-gradient(circle at 10% 12%, rgba(61, 131, 223, 0.08), transparent 18%),
        radial-gradient(circle at 88% 20%, rgba(61, 131, 223, 0.07), transparent 18%);
    opacity: 1;
}

.president-light-layout {
    display: grid;
    grid-template-columns: minmax(290px, 0.92fr) minmax(360px, 0.92fr) minmax(380px, 1.08fr);
    gap: 26px;
    align-items: stretch;
}

.president-profile-card,
.president-message-card,
.president-program-card,
.president-gallery-strip,
.president-stats--light {
    border: 1px solid rgba(220, 231, 246, 0.95);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(31, 72, 124, 0.12);
}

.president-profile-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 516px;
}

.president-profile-card__image {
    height: 350px;
    min-height: 0;
    overflow: hidden;
    background: #dde8f6;
}

.president-profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.1);
    transform-origin: center top;
    display: block;
}

.president-profile-card__body {
    flex: 1 1 auto;
    min-height: 166px;
    padding: 22px 28px 24px;
    color: #fff;
    background: linear-gradient(180deg, #0d2f63 0%, #07244d 100%);
}

.president-profile-card__body h2 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
}

.president-profile-card__body p {
    margin: 8px 0 0;
    color: #f6cb62;
    font-size: 15px;
    font-weight: 700;
}

.president-profile-card__rule {
    width: 54px;
    height: 3px;
    margin: 18px 0 14px;
    border-radius: 999px;
    background: #f6cb62;
}

.president-widget--light .president-socials {
    justify-content: flex-start;
    gap: 12px;
    margin-top: 0;
}

.president-widget--light .president-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    font-size: 18px;
}

.president-message-card {
    display: flex;
    flex-direction: column;
    height: 516px;
    padding: 34px 34px 28px;
}

.president-widget--light .president-message__quote {
    width: auto;
    height: auto;
    margin-bottom: 10px;
    color: #ddb44f;
    background: transparent;
    font-size: 62px;
    line-height: 1;
}

.president-message-card h2 {
    margin: 0;
    color: #0a2f67;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.president-message-card .president-message__rule {
    width: 70px;
    height: 3px;
    margin: 14px 0 24px;
    border-radius: 999px;
    background: #ddb44f;
}

.president-message-card .president-message__body p {
    margin: 0 0 19px;
    color: #324b71;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

.president-message-card .president-message__body {
    flex: 1 1 auto;
}

.president-message-card .president-message__closing {
    margin-top: 16px;
    color: #0a2f67;
    font-size: 14px;
}

.president-message-card .president-message__signature {
    margin-top: 8px;
    color: #0a57d3;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 34px;
    line-height: 1.05;
}

.president-message-card .president-message__title {
    margin-top: 12px;
    padding-bottom: 0;
    border: 0;
    color: #0a2f67;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.president-message-card .president-message__title::after {
    display: none;
}

.president-program-card {
    overflow: hidden;
    height: 516px;
    color: #fff;
    background: linear-gradient(180deg, #0d3e86 0%, #092c5f 100%);
}

.president-program-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 94px;
    padding: 20px 22px 0;
}

.president-program-card__title {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.president-program-card__title-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 9px;
    color: #0a2f67;
    background: #fff;
    font-size: 24px;
}

.president-program-card__title strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.president-program-card__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 0 18px;
    border: 1px solid rgba(246, 203, 98, 0.68);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.president-program-card__rule {
    width: 68px;
    height: 3px;
    margin: 0 22px 18px;
    border-radius: 999px;
    background: #ddb44f;
}

.president-program-card__visual {
    height: 160px;
    margin: 0 0 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
}

.president-program-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.president-program-card__list {
    display: grid;
}

.president-program-card__item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 80px;
    padding: 10px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.president-program-card__item:first-child {
    border-top: 0;
}

.president-program-card__item-icon {
    display: grid;
    place-items: start;
    color: #ddb44f;
    font-size: 24px;
}

.president-program-card__item-copy strong,
.president-program-card__item-copy h3,
.president-program-card__item-copy p {
    margin: 0;
    color: #fff;
}

.president-program-card__item-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #f6cb62;
    font-size: 16px;
    font-weight: 900;
}

.president-program-card__item-copy h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.32;
}

.president-program-card__item-copy p {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
}

.president-gallery-strip {
    margin-top: 20px;
    padding: 18px 26px 22px;
}

.president-gallery-strip__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.president-widget--light .president-section-heading {
    margin-bottom: 0;
    padding-bottom: 0;
    border: 0;
    color: #0a2f67;
    font-size: 14px;
}

.president-gallery-strip__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0a57d3;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.president-gallery-strip__frame {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 16px;
    align-items: center;
}

.president-gallery-strip__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #113c7d;
    cursor: pointer;
}

.president-gallery-strip__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.president-gallery-strip__track::-webkit-scrollbar {
    display: none;
}

.president-gallery-strip__item {
    display: block;
    overflow: hidden;
    height: 130px;
    border-radius: 12px;
    background: #dfe7f4;
}

.president-gallery-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.president-gallery-strip__item:hover img {
    transform: scale(1.04);
}

.president-stats--light {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 20px;
    padding: 22px 24px;
}

.president-stats--light .president-stat {
    gap: 16px;
    padding: 0 18px;
}

.president-stats--light .president-stat:not(:last-child)::after {
    background: #dfe7f4;
}

.president-stats--light .president-stat__icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
}

.president-stats--light .president-stat strong {
    font-size: 24px;
}

.president-stats--light .president-stat span {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1480px) {
    .president-widget .container {
        max-width: 90%;
    }

    .president-widget__inner {
        grid-template-columns: 1fr 1fr;
    }

    .president-portrait {
        grid-column: 1 / -1;
    }

    .president-portrait__image {
        min-height: 300px;
    }

    .president-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 16px;
    }

    .president-stat:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 980px) {
    .president-widget {
        padding: 24px 0 16px;
    }

    .president-widget__inner {
        grid-template-columns: 1fr;
    }

    .president-message {
        padding: 22px;
    }

    .president-portrait__image {
        min-height: 300px;
    }

    .president-program__bottom {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .president-program__bottom em {
        text-align: left;
    }

    .president-stats {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }

    .president-stat {
        justify-content: flex-start;
        padding: 12px 0;
    }

    .president-stat:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 640px) {
    .president-photo-grid {
        grid-auto-rows: 128px;
    }

    .president-gallery__button {
        width: 100%;
    }

    .president-program__top {
        align-items: stretch;
        flex-direction: column;
    }

    .president-program__button {
        width: 100%;
    }

    .president-socials a {
        width: 40px;
        height: 40px;
    }
}

.president-widget--dark {
    --president-gold: #ffd27a;
    padding: 64px 0 48px;
    color: #fff;
    background:
        radial-gradient(circle at 25% 14%, rgba(16, 104, 178, 0.46), transparent 32%),
        linear-gradient(120deg, #052a55 0%, #07396a 46%, #171717 100%);
}

.president-widget--dark::before {
    background-image:
        linear-gradient(90deg, rgba(2, 31, 63, 0.98) 0%, rgba(5, 50, 88, 0.88) 45%, rgba(12, 13, 15, 0.42) 100%),
        var(--president-bg);
    opacity: 0.92;
    filter: none;
}

.president-widget--dark::after {
    background:
        radial-gradient(circle at 67% 20%, rgba(255, 210, 122, 0.14), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 18px);
    opacity: 0.52;
}

.president-widget--dark .president-widget__inner {
    grid-template-columns: minmax(330px, 0.94fr) minmax(360px, 0.86fr) minmax(390px, 1.02fr);
    gap: clamp(26px, 3vw, 54px);
    align-items: center;
}

.president-widget--dark .president-section-heading {
    margin-bottom: 34px;
    padding-bottom: 16px;
    border-bottom-color: rgba(255, 210, 122, 0.82);
    color: #fff;
    font-size: clamp(17px, 1vw, 23px);
}

.president-widget--dark .president-section-heading__icon {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    color: #fff;
    background: transparent;
    box-shadow: none;
    font-size: 17px;
}

.president-widget--dark .president-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(104px, 7.5vw, 140px);
    gap: clamp(12px, 1vw, 18px);
}

.president-widget--dark .president-photo-grid__item {
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 10, 30, 0.28);
}

.president-widget--dark .president-photo-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.president-widget--dark .president-gallery__button {
    min-height: 54px;
    min-width: min(100%, 300px);
    margin-top: 30px;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 44px rgba(0, 12, 32, 0.24);
    font-size: 14px;
}

.president-widget--dark .president-message {
    padding: clamp(32px, 3.1vw, 46px);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(27, 93, 150, 0.58), rgba(5, 38, 73, 0.76)),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 70px rgba(0, 10, 30, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.president-widget--dark .president-message__quote {
    display: block;
    width: auto;
    height: 42px;
    margin-bottom: 18px;
    color: #3796ff;
    background: transparent;
    font-size: 76px;
    line-height: 0.8;
}

.president-widget--dark .president-message h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 2.2vw, 48px);
    line-height: 1.12;
}

.president-widget--dark .president-message h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(17px, 1vw, 22px);
}

.president-widget--dark .president-message__rule {
    width: 68px;
    height: 1px;
    margin: 26px 0;
    background: var(--president-gold);
}

.president-widget--dark .president-message__body p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(14px, 0.9vw, 17px);
    line-height: 1.68;
}

.president-widget--dark .president-message__closing {
    margin-top: 26px;
    color: #fff;
    font-size: 15px;
}

.president-widget--dark .president-message__closing::after {
    content: "";
    display: inline-block;
    width: min(170px, 36vw);
    height: 1px;
    margin-left: 18px;
    vertical-align: middle;
    background: var(--president-gold);
}

.president-widget--dark .president-message__signature {
    color: #fff;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: clamp(34px, 2.4vw, 54px);
    font-weight: 500;
}

.president-widget--dark .president-message__title {
    margin-top: 8px;
    padding-bottom: 0;
    border: 0;
    color: var(--president-gold);
    font-size: clamp(11px, 0.74vw, 14px);
    letter-spacing: 0.32em;
}

.president-widget--dark .president-message__title::after {
    display: none;
}

.president-widget--dark .president-socials {
    justify-content: flex-start;
    gap: 18px;
    margin-top: 28px;
}

.president-widget--dark .president-socials a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 22px;
}

.president-widget--dark .president-portrait {
    display: block;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.president-widget--dark .president-portrait__image {
    min-height: clamp(520px, 36vw, 690px);
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.president-widget--dark .president-portrait__image::before {
    background: linear-gradient(180deg, transparent 56%, rgba(0, 12, 28, 0.3));
}

.president-widget--dark .president-portrait__image img {
    object-position: center;
}

.president-widget--dark .president-portrait__plaque {
    bottom: 28px;
    min-width: 210px;
    padding: 12px 24px 14px;
    border: 2px solid rgba(255, 210, 122, 0.28);
    background: linear-gradient(180deg, rgba(18, 24, 36, 0.88), rgba(25, 34, 50, 0.86));
}

.president-widget--dark .president-portrait__plaque small {
    font-size: 12px;
}

.president-widget--dark .president-portrait__plaque strong {
    font-size: 20px;
}

.president-widget--dark .president-program {
    display: none;
}

.president-widget--dark .president-stats {
    margin-top: 36px;
    padding: 32px 38px;
    border-color: rgba(255, 255, 255, 0.2);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 58px rgba(0, 10, 30, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.president-widget--dark .president-stat {
    gap: 22px;
}

.president-widget--dark .president-stat:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.15);
}

.president-widget--dark .president-stat__icon,
.president-widget--dark .president-stat:nth-child(2) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(3) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(4) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(5) .president-stat__icon {
    width: 56px;
    height: 56px;
    color: var(--president-gold);
    background: transparent;
    font-size: clamp(34px, 2.3vw, 52px);
}

.president-widget--dark .president-stat strong,
.president-widget--dark .president-stat span {
    color: #fff;
}

.president-widget--dark .president-stat strong {
    font-size: clamp(24px, 1.7vw, 36px);
}

.president-widget--dark .president-stat span {
    margin-top: 10px;
    font-size: clamp(13px, 0.9vw, 17px);
    font-weight: 500;
}

@media (max-width: 1480px) {
    .president-widget--dark .president-widget__inner {
        grid-template-columns: 1fr 1fr;
    }

    .president-widget--dark .president-portrait {
        grid-column: 1 / -1;
    }

    .president-widget--dark .president-portrait__image {
        min-height: 500px;
    }
}

@media (max-width: 980px) {
    .president-widget--dark {
        padding: 42px 0 34px;
    }

    .president-widget--dark .president-widget__inner {
        grid-template-columns: 1fr;
    }

    .president-widget--dark .president-message {
        padding: 28px;
    }

    .president-widget--dark .president-portrait__image {
        min-height: 420px;
    }

    .president-widget--dark .president-stats {
        grid-template-columns: 1fr;
        padding: 22px 26px;
    }

    .president-widget--dark .president-stat {
        justify-content: flex-start;
        padding: 16px 0;
    }
}

@media (max-width: 640px) {
    .president-widget--dark .president-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 96px;
    }

    .president-widget--dark .president-photo-grid__item:first-child {
        grid-column: 1 / -1;
    }

    .president-widget--dark .president-gallery__button {
        width: 100%;
    }

    .president-widget--dark .president-message__closing::after {
        display: block;
        margin: 12px 0 0;
    }
}

@media (max-width: 1280px) {
    .president-light-layout {
        grid-template-columns: 1fr;
    }

    .president-profile-card__image {
        min-height: 360px;
    }

    .president-program-card__visual {
        height: 220px;
    }

    .president-stats--light {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }

    .president-stats--light .president-stat:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .president-widget--light {
        padding-top: 24px;
    }

    .president-widget--light .container {
        width: min(100%, calc(100% - 18px));
    }

    .president-message-card,
    .president-gallery-strip {
        padding-left: 20px;
        padding-right: 20px;
    }

    .president-program-card__head,
    .president-program-card__item {
        padding-left: 18px;
        padding-right: 18px;
    }

    .president-program-card__head,
    .president-gallery-strip__head {
        flex-direction: column;
        align-items: stretch;
    }

    .president-program-card__button,
    .president-gallery-strip__cta {
        justify-content: center;
    }

    .president-gallery-strip__frame {
        grid-template-columns: 1fr;
    }

    .president-gallery-strip__arrow {
        display: none;
    }

    .president-gallery-strip__track {
        grid-auto-columns: minmax(240px, 76%);
    }

    .president-stats--light {
        grid-template-columns: 1fr;
        padding: 18px 20px;
    }

    .president-stats--light .president-stat {
        justify-content: flex-start;
        padding: 12px 0;
    }

    .president-stats--light .president-stat:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
    }
}

.president-widget--notice {
    padding: 38px 0 10px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.94) 34%, #eef5ff 100%);
}

.president-widget--notice::before,
.president-widget--notice::after {
    display: none;
}

.president-widget--notice .container {
    width: min(1440px, calc(100% - 32px));
    max-width: none;
}

.president-notice {
    padding: 0 0 16px;
    border: 1px solid rgba(202, 218, 239, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 52px rgba(25, 62, 112, 0.12);
}

.president-notice__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #e5eef9;
}

.president-notice__tab {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 26px 28px 22px;
    border: 0;
    border-right: 1px solid #edf3fb;
    color: #1c2e53;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.president-notice__tab:last-child {
    border-right: 0;
}

.president-notice__tab.is-active {
    color: var(--widget-accent, #1f63ea);
    box-shadow: inset 0 -3px 0 var(--widget-accent, #1f63ea);
}

.president-notice__tab-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 13px;
    color: var(--widget-accent, #1f63ea);
    background: rgba(31, 99, 234, 0.08);
    font-size: 21px;
}

.president-notice__tab-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.president-notice__tab-copy strong,
.president-notice__tab-copy small {
    font-family: inherit;
}

.president-notice__tab-copy strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.president-notice__tab-copy small {
    display: block;
    color: #6b7f9e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.president-notice__panel {
    display: none;
    padding: 20px 22px 0;
}

.president-notice__panel.is-active {
    display: block;
}

.president-notice__content {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.94fr) minmax(285px, 0.86fr);
    gap: 18px;
    align-items: stretch;
}

.president-notice__feed,
.president-notice__gallery,
.president-notice__message {
    min-width: 0;
}

.president-notice__feed {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8eef8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(22, 60, 110, 0.08);
    overflow: hidden;
}

.president-notice__feed-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #edf3fb;
}

.president-notice__feed-head h2 {
    margin: 0;
    color: #173567;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
}

.president-notice__feed-head p {
    margin: 5px 0 0;
    color: #7082a0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.president-notice__feed-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--widget-accent, #1f63ea);
    background: var(--widget-soft, rgba(31, 99, 234, 0.08));
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.president-notice__feed-list {
    display: grid;
    gap: 0;
    padding: 4px 18px 0;
}

.president-notice__feed-list .home-info-item {
    min-height: 88px;
    padding-left: 8px;
    padding-right: 8px;
    border-bottom: 1px solid #edf3fb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.president-notice__feed-list .home-info-item:last-child {
    border-bottom: 0;
}

.president-notice__feed-list .home-info-item__title {
    font-size: 15px;
}

.president-notice__feed-list .home-info-item__subtitle,
.president-notice__feed-list .home-info-item__meta {
    font-size: 12px;
}

.president-notice__feed-list .home-info-item--announcement {
    grid-template-columns: 56px minmax(0, 1fr) 18px;
}

.president-notice__feed-list .home-info-item__bullet {
    width: 42px;
    height: 42px;
}

.president-notice__feed-list .home-info-item--tender {
    grid-template-columns: 72px minmax(0, 1fr) auto 18px;
}

.president-notice__feed-list .home-info-item--report {
    grid-template-columns: 72px minmax(0, 1fr) 18px;
}

.president-notice__gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.president-notice__gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(220px, 1.25fr) repeat(2, minmax(96px, 1fr));
    gap: 10px;
    height: 100%;
}

.president-notice__gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #dfe9f8;
    box-shadow: 0 16px 36px rgba(24, 61, 108, 0.12);
}

.president-notice__gallery-item:first-child {
    grid-column: 1 / -1;
}

.president-notice__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.president-notice__gallery-item:hover img {
    transform: scale(1.03);
}

.president-notice__gallery-button {
    margin: 0 auto;
}

.president-notice__message {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #08274c;
    box-shadow: 0 22px 48px rgba(12, 33, 65, 0.22);
}

.president-notice__message-bg,
.president-notice__message-bg img,
.president-notice__message-overlay {
    position: absolute;
    inset: 0;
}

.president-notice__message-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.president-notice__message-overlay {
    background:
        linear-gradient(180deg, rgba(5, 18, 38, 0.06) 0%, rgba(6, 25, 50, 0.78) 38%, rgba(4, 21, 43, 0.96) 100%),
        linear-gradient(135deg, rgba(11, 85, 170, 0.22), transparent 46%);
}

.president-notice__message-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 30px 26px 22px;
    color: #fff;
}

.president-widget--notice .president-message__quote {
    width: auto;
    height: auto;
    margin-bottom: 8px;
    color: #43a0ff;
    background: transparent;
    font-size: 54px;
    line-height: 1;
}

.president-widget--notice .president-notice__message h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.president-widget--notice .president-notice__message h3 {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    font-weight: 800;
}

.president-widget--notice .president-message__body p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.62;
}

.president-widget--notice .president-message__closing {
    margin-top: 10px;
    color: #fff;
    font-size: 12px;
}

.president-widget--notice .president-message__signature {
    margin-top: 12px;
    color: #5baeff;
    font-size: 28px;
}

.president-widget--notice .president-message__title {
    margin-top: 4px;
    padding-bottom: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    letter-spacing: 0.28em;
}

.president-widget--notice .president-message__title::after {
    display: none;
}

.president-widget--notice .president-socials {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.president-widget--notice .president-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.president-notice__stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 18px 22px 0;
    padding: 18px 14px;
    border: 1px solid #e7eef8;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
    box-shadow: 0 16px 34px rgba(24, 61, 108, 0.08);
}

.president-widget--notice .president-stat {
    gap: 14px;
    padding: 0 18px;
}

.president-widget--notice .president-stat:not(:last-child)::after {
    background: #e2ebf8;
}

.president-widget--notice .president-stat__icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

@media (max-width: 1400px) {
    .president-notice__content {
        grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.9fr) minmax(250px, 0.84fr);
    }
}

@media (max-width: 1180px) {
    .president-notice__tabs {
        grid-template-columns: 1fr;
    }

    .president-notice__tab {
        border-right: 0;
        border-bottom: 1px solid #edf3fb;
    }

    .president-notice__tab:last-child {
        border-bottom: 0;
    }

    .president-notice__content {
        grid-template-columns: 1fr;
    }

    .president-notice__gallery-grid {
        grid-template-rows: 220px repeat(2, 120px);
    }

    .president-notice__message {
        min-height: 420px;
    }

    .president-notice__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }

    .president-widget--notice .president-stat:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .president-widget--notice {
        padding-top: 24px;
    }

    .president-notice {
        border-radius: 20px;
    }

    .president-notice__panel {
        padding: 16px 16px 0;
    }

    .president-notice__feed-head {
        flex-direction: column;
        align-items: stretch;
    }

    .president-notice__feed-link {
        justify-content: center;
    }

    .president-notice__feed-list .home-info-item,
    .president-notice__feed-list .home-info-item--announcement,
    .president-notice__feed-list .home-info-item--tender,
    .president-notice__feed-list .home-info-item--report {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 8px;
    }

    .president-notice__feed-list .home-info-item__arrow {
        justify-self: flex-start;
    }

    .president-notice__gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 190px repeat(2, 96px);
    }

    .president-notice__message {
        min-height: 380px;
    }

    .president-notice__stats {
        grid-template-columns: 1fr;
        margin: 16px 16px 0;
        padding: 16px;
    }

    .president-widget--notice .president-stat {
        justify-content: flex-start;
        padding: 12px 0;
    }

    .president-widget--notice .president-stat:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
    }
}

/* Refined dark layout: closer to the original dark president block proportions. */
.president-widget--dark {
    padding: 48px 0 38px;
}

.president-widget--dark .president-widget__inner {
    grid-template-columns: minmax(350px, 1.06fr) minmax(360px, 0.9fr) minmax(380px, 1.04fr);
    gap: clamp(24px, 2.4vw, 44px);
    align-items: start;
}

.president-widget--dark .president-section-heading {
    margin-bottom: 24px;
    padding-bottom: 13px;
    font-size: clamp(16px, 0.95vw, 20px);
}

.president-widget--dark .president-section-heading__icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.president-widget--dark .president-photo-grid {
    grid-auto-rows: clamp(88px, 6.25vw, 118px);
    gap: clamp(10px, 0.8vw, 14px);
}

.president-widget--dark .president-gallery__button {
    min-height: 48px;
    margin-top: 24px;
    font-size: 13px;
}

.president-widget--dark .president-message {
    padding: clamp(26px, 2.25vw, 34px);
    border-radius: 18px;
}

.president-widget--dark .president-message__quote {
    height: 30px;
    margin-bottom: 12px;
    font-size: 58px;
}

.president-widget--dark .president-message h2 {
    margin-bottom: 8px;
    font-size: clamp(27px, 1.75vw, 36px);
}

.president-widget--dark .president-message h3 {
    font-size: clamp(15px, 0.92vw, 18px);
}

.president-widget--dark .president-message__rule {
    margin: 18px 0 20px;
}

.president-widget--dark .president-message__body p {
    margin-bottom: 10px;
    font-size: clamp(13px, 0.82vw, 15px);
    line-height: 1.55;
}

.president-widget--dark .president-message__closing {
    margin-top: 18px;
    font-size: 14px;
}

.president-widget--dark .president-message__closing::after {
    width: min(145px, 28vw);
}

.president-widget--dark .president-message__signature {
    margin-top: 12px;
    font-size: clamp(30px, 2vw, 42px);
}

.president-widget--dark .president-message__title {
    font-size: clamp(10px, 0.66vw, 12px);
    letter-spacing: 0.24em;
}

.president-widget--dark .president-socials {
    gap: 14px;
    margin-top: 22px;
}

.president-widget--dark .president-socials a {
    width: 48px;
    height: 48px;
    font-size: 19px;
}

.president-widget--dark .president-portrait {
    width: 100%;
}

.president-widget--dark .president-portrait__image {
    min-height: clamp(440px, 30vw, 560px);
    border-radius: 0 0 0 0;
}

.president-widget--dark .president-portrait__image img {
    display: block;
}

.president-widget--dark .president-portrait__plaque {
    bottom: 22px;
    min-width: 180px;
    padding: 10px 20px 12px;
}

.president-widget--dark .president-stats {
    margin-top: 28px;
    padding: 24px 30px;
}

.president-widget--dark .president-stat {
    gap: 17px;
    padding: 0 18px;
}

.president-widget--dark .president-stat__icon,
.president-widget--dark .president-stat:nth-child(2) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(3) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(4) .president-stat__icon,
.president-widget--dark .president-stat:nth-child(5) .president-stat__icon {
    width: 46px;
    height: 46px;
    font-size: clamp(29px, 1.9vw, 42px);
}

.president-widget--dark .president-stat strong {
    font-size: clamp(22px, 1.45vw, 30px);
}

.president-widget--dark .president-stat span {
    margin-top: 6px;
    font-size: clamp(12px, 0.78vw, 14px);
}

@media (max-width: 1480px) {
    .president-widget--dark .president-widget__inner {
        grid-template-columns: 1fr 1fr;
    }

    .president-widget--dark .president-portrait {
        grid-column: 1 / -1;
    }

    .president-widget--dark .president-portrait__image {
        min-height: 440px;
    }

    .president-widget--dark .president-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 20px;
    }
}

@media (max-width: 980px) {
    .president-widget--dark {
        padding: 34px 0 28px;
    }

    .president-widget--dark .president-widget__inner {
        grid-template-columns: 1fr;
    }

    .president-widget--dark .president-portrait__image {
        min-height: 360px;
    }

    .president-widget--dark .president-stats {
        grid-template-columns: 1fr;
        padding: 20px 24px;
    }
}

/* Dark president card frame alignment */
.president-widget--dark .president-widget__inner {
    align-items: stretch;
}

.president-widget--dark .president-message {
    height: 100%;
}

.president-widget--dark .president-portrait {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 18px;
}

.president-widget--dark .president-portrait__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 28px 70px rgba(0, 10, 30, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.president-widget--dark .president-portrait__image img {
    height: 100%;
    min-height: 0;
}

@media (max-width: 1480px) {
    .president-widget--dark .president-portrait__image {
        min-height: 440px;
        height: auto;
    }
}

@media (max-width: 980px) {
    .president-widget--dark .president-portrait__image {
        min-height: 360px;
        height: auto;
    }
}

/* Light president card frame alignment */
.president-widget--light .president-widget__inner {
    align-items: stretch;
}

.president-widget--light .president-message {
    height: 100%;
    border-radius: 16px;
}

.president-widget--light .president-portrait {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(35, 82, 142, 0.15);
}

.president-widget--light .president-portrait__image {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 16px 16px 0 0;
}

.president-widget--light .president-portrait__image img {
    height: 100%;
    min-height: 0;
}

@media (max-width: 1480px) {
    .president-widget--light .president-portrait__image {
        min-height: 300px;
        height: auto;
    }
}

@media (max-width: 980px) {
    .president-widget--light .president-portrait__image {
        min-height: 300px;
        height: auto;
    }
}
