/* Make parent dropdown items non-clickable */
.dropmenu li > a:first-child:has(+ ul) {
    pointer-events: none;
    cursor: default;
}

/* Contact page map size */
#leaflet-address-map {
    height: 350px !important;
    border-radius: 4px;
}

/* Header and logo sizing */
#header {
    height: 5.4rem;
}

#header .navbar-section {
    height: 5.4rem;
}

.header-fixed #body-wrapper {
    padding-top: 5.4rem;
}

#header .logo .navbar-brand {
    display: inline-flex;
    align-items: center;
}

#header .logo img {
    height: 82px;
    width: auto;
    display: block;
}

body.header-fixed.header-animated #header.scrolled {
    height: 4.4rem;
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: 4.4rem;
}

body.header-fixed.header-animated #header.scrolled .logo img {
    height: 58px;
}

/* Professors page cards */
.team-hero {
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7f8fb 0%, #eef2ff 100%);
    border: 1px solid #e1e6fb;
}

.team-hero h2 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
}

.team-hero p {
    margin: 0;
    color: #4f5b75;
}

.team-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
    background: #fff;
    border: 1px solid #e6eaf5;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(26, 37, 84, 0.06);
}

.team-card--wide {
    grid-column: span 2;
}

.team-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

img.team-chip {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    min-width: 46px;
    padding: 6px;
    border: 1px solid #cfd8f3;
    border-radius: 10px;
    background: #f6f8ff;
    object-fit: contain;
    box-sizing: border-box;
    display: inline-block;
}

.team-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.team-role {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f5b75;
}

.team-text {
    margin: 0;
    color: #2f3650;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card--wide {
        grid-column: auto;
    }

    img.team-chip {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        min-width: 40px;
        padding: 5px;
    }
}

/* Footer */
#footer {
    padding: 1.2rem 0;
}

#footer .footer-content {
    text-align: center;
}

#footer .footer-content p {
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: #5f6b7a;
}

#footer .footer-content a {
    color: #5f6b7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#footer .footer-content a:hover {
    color: #2f3650;
}

/* Tarifs page */
.pricing-hero {
    margin-bottom: 1.4rem;
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fbf6 0%, #edf7ee 100%);
    border: 1px solid #d4ead7;
}

.pricing-hero h2 {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
}

.pricing-hero p {
    margin: 0;
    color: #456253;
}

.pricing-block {
    margin-bottom: 1.2rem;
}

.pricing-block h3 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dfe8e0;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-table thead th {
    background: #f3f8f3;
    color: #2f4a3b;
    font-weight: 700;
    text-align: left;
}

.pricing-table th,
.pricing-table td {
    padding: 0.62rem 0.7rem;
    border-bottom: 1px solid #e8efea;
    vertical-align: top;
}

.pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.pricing-note {
    margin-top: 0.3rem;
    color: #5b6f60;
    font-size: 0.88rem;
    line-height: 1.35;
}

.pricing-included {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.pricing-chip {
    display: inline-block;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #cfe0d2;
    background: #f6fbf7;
    color: #31503f;
    font-size: 0.88rem;
}

.pricing-rules {
    margin-top: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d9e6db;
    border-radius: 10px;
    background: #fbfdfb;
}

.pricing-rules p {
    margin: 0 0 0.45rem;
    line-height: 1.42;
}

.pricing-rules p:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .pricing-table th,
    .pricing-table td {
        padding: 0.55rem 0.5rem;
    }

    .pricing-hero,
    .pricing-rules {
        padding: 0.85rem;
    }
}

/* Tarifs page readability refresh */
.pricing-page {
    max-width: 980px;
    margin: 0 auto;
}

.pricing-hero {
    margin-bottom: 1.1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #d8e5dc;
    background: linear-gradient(135deg, #f9fcfa 0%, #eef6f0 100%);
}

.pricing-hero h2 {
    margin: 0 0 0.4rem;
    font-size: 1.55rem;
}

.pricing-hero p {
    margin: 0;
    color: #486050;
}

.pricing-panel {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2ebe4;
    border-radius: 10px;
    background: #fff;
}

.pricing-panel h3 {
    margin: 0 0 0.7rem;
    font-size: 1.12rem;
    color: #243a2d;
}

.pricing-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #e5ece6;
    padding: 0.62rem 0.65rem;
    vertical-align: top;
}

.pricing-table th {
    background: #f4f8f5;
    color: #2f4939;
    font-weight: 700;
    text-align: left;
}

.pricing-table tbody tr:nth-child(even) {
    background: #fbfdfb;
}

.pricing-label {
    font-weight: 600;
    color: #1f3328;
}

.pricing-amount {
    white-space: nowrap;
    font-weight: 700;
    color: #1f4f35;
}

.pricing-note {
    margin-top: 0.3rem;
    color: #5b6f60;
    font-size: 0.89rem;
    line-height: 1.36;
}

.pricing-included-list {
    margin: 0 0 0.35rem;
    padding-left: 1.15rem;
}

.pricing-included-list li {
    margin-bottom: 0.25rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.payment-card {
    border: 1px solid #dde8e0;
    border-radius: 8px;
    padding: 0.75rem;
    background: #fcfefc;
}

.payment-card h4 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.payment-card p {
    margin: 0;
    line-height: 1.38;
}

.pricing-rules {
    margin-top: 0.8rem;
    border: 1px solid #e0e9e2;
    border-radius: 8px;
    background: #f9fcfa;
    padding: 0.75rem;
}

.pricing-rules h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.pricing-rules ul {
    margin: 0;
    padding-left: 1.1rem;
}

.pricing-rules li {
    margin-bottom: 0.35rem;
}

.pricing-rules li:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .pricing-panel,
    .pricing-hero {
        padding: 0.85rem;
    }
}

/* Activities page cards */
.activities-page {
    max-width: 1080px;
    margin: 0 auto;
}

.activities-hero {
    margin-bottom: 1.1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: linear-gradient(140deg, #f8fbff 0%, #eef4fb 100%);
}

.activities-hero h2 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
}

.activities-hero p {
    margin: 0;
    color: #4b5c77;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.activity-card {
    border: 1px solid #e0e8f3;
    border-radius: 12px;
    background: #fff;
    padding: 0.95rem;
    box-shadow: 0 4px 15px rgba(21, 45, 89, 0.06);
    display: flex;
    flex-direction: column;
}

.activity-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    border: 1px solid #cfdaf0;
    background: #f5f8ff;
    padding: 5px;
    object-fit: contain;
}

.activity-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.activity-text {
    margin: 0 0 0.62rem;
    color: #445371;
    line-height: 1.4;
}

.activity-list {
    margin: 0;
    padding-left: 1.1rem;
    line-height: 1.4;
    color: #22304b;
}

.activity-list li {
    margin-bottom: 0.25rem;
}

.activity-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    margin-top: 0.7rem;
    padding: 0.35rem 0.6rem;
    border-radius: 7px;
    border: 1px solid #cedaf1;
    background: #f6f9ff;
    color: #23477f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.activity-link:hover {
    background: #e9f1ff;
    border-color: #b9ccef;
}

.activities-extra {
    margin-top: 1rem;
}

@media (max-width: 920px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}

/* Activities page v2 - clear card layout */
.act2-page {
    max-width: 1120px;
    margin: 0 auto;
}

.act2-hero {
    margin-bottom: 1.1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #d8e6df;
    background: linear-gradient(135deg, #f8fcfa 0%, #eef7f2 100%);
}

.act2-hero h2 {
    margin: 0 0 0.42rem;
    font-size: 1.58rem;
}

.act2-hero p {
    margin: 0;
    color: #4d6558;
}

.act2-category {
    margin-bottom: 1rem;
    border: 1px solid #e0ebdf;
    border-radius: 12px;
    background: #fff;
    padding: 0.95rem;
}

.act2-category-head h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #244033;
}

.act2-category-head p {
    margin: 0.3rem 0 0.85rem;
    color: #566d61;
}

.act2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.act2-card {
    border: 1px solid #dce8e0;
    border-radius: 10px;
    background: linear-gradient(160deg, #ffffff 0%, #fbfdfc 100%);
    padding: 0.75rem;
    box-shadow: 0 3px 12px rgba(24, 59, 41, 0.06);
}

.act2-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.act2-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 9px;
    border: 1px solid #cfe2d6;
    background: #f4faf7;
    padding: 4px;
    max-width: 44px !important;
    max-height: 44px !important;
}

.act2-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #1f392d;
}

.act2-card p {
    margin: 0;
    color: #3f564b;
    line-height: 1.4;
    font-size: 0.94rem;
}

@media (max-width: 940px) {
    .act2-grid {
        grid-template-columns: 1fr;
    }

    .act2-hero,
    .act2-category {
        padding: 0.82rem;
    }
}

/* Activities icon size update */
.act2-icon {
    width: 64px;
    height: 64px;
    max-width: 64px !important;
    max-height: 64px !important;
    padding: 6px;
}

@media (max-width: 940px) {
    .act2-icon {
        width: 56px;
        height: 56px;
        max-width: 56px !important;
        max-height: 56px !important;
    }
}

/* Activities icon size +50% */
.act2-icon {
    width: 96px;
    height: 96px;
    max-width: 96px !important;
    max-height: 96px !important;
    padding: 8px;
}

@media (max-width: 940px) {
    .act2-icon {
        width: 84px;
        height: 84px;
        max-width: 84px !important;
        max-height: 84px !important;
        padding: 7px;
    }
}

/* Activities card hover motion */
.act2-card {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
    transform-origin: center;
}

.act2-card:hover {
    transform: translateY(-4px);
    border-color: #c5ddcf;
    background: linear-gradient(160deg, #ffffff 0%, #f5fbf7 100%);
    box-shadow: 0 10px 24px rgba(24, 59, 41, 0.14);
}

.act2-icon {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.act2-card:hover .act2-icon {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 4px 12px rgba(53, 112, 78, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .act2-card,
    .act2-icon {
        transition: none;
    }

    .act2-card:hover,
    .act2-card:hover .act2-icon {
        transform: none;
    }
}

/* Activities icons +50% bigger again */
.act2-icon {
    width: 144px;
    height: 144px;
    max-width: 144px !important;
    max-height: 144px !important;
    padding: 10px;
}

@media (max-width: 940px) {
    .act2-icon {
        width: 126px;
        height: 126px;
        max-width: 126px !important;
        max-height: 126px !important;
        padding: 9px;
    }
}

/* Event gallery page */
.gallery-page {
    max-width: 1180px;
    margin: 0 auto;
}

.gallery-hero {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid #dce6ef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fc 100%);
}

.gallery-hero h2 {
    margin: 0 0 0.35rem;
    font-size: 1.52rem;
}

.gallery-hero p {
    margin: 0;
    color: #4e617d;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe6f1;
    box-shadow: 0 4px 14px rgba(18, 44, 83, 0.08);
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: #bfd4ea;
    box-shadow: 0 10px 24px rgba(18, 44, 83, 0.16);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-empty {
    margin: 0;
    padding: 0.9rem;
    border: 1px dashed #cfdce8;
    border-radius: 8px;
    color: #5a6f88;
}

.gallery-extra {
    margin-top: 0.9rem;
}

@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery feed */
.galfeed-page,
.album-page {
    max-width: 1120px;
    margin: 0 auto;
}

.galfeed-hero,
.album-hero {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dce7f2;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5fd 100%);
}

.galfeed-hero h2,
.album-hero h2 {
    margin: 0 0 0.4rem;
}

.galfeed-hero p,
.album-summary,
.album-meta {
    margin: 0;
    color: #4d607f;
}

.galfeed-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.galfeed-filter {
    border: 1px solid #ccdaea;
    background: #f6f9ff;
    color: #24456f;
    text-decoration: none;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    font-size: 0.88rem;
}

.galfeed-filter.is-active {
    background: #e7f1ff;
    border-color: #a9c5e9;
    color: #173a66;
    font-weight: 700;
}

.galfeed-grid {
    display: grid;
    gap: 0.95rem;
}

.galfeed-card {
    border: 1px solid #dce6f1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(19, 45, 83, 0.08);
}

.galfeed-cover {
    width: 100%;
    display: block;
    aspect-ratio: 12 / 5;
    object-fit: cover;
}

.galfeed-cover-link {
    display: block;
    position: relative;
}

.galfeed-cover-link--video {
    background: #172433;
}

.galfeed-cover--video {
    color: #fff;
    background: linear-gradient(135deg, #172433 0%, #304b65 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.galfeed-media-badge,
.album-video-badge {
    position: absolute;
    right: 0.55rem;
    bottom: 0.45rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.8rem;
}

.galfeed-body {
    padding: 0.88rem;
}

.galfeed-body h3 {
    margin: 0;
    font-size: 1.1rem;
}

.galfeed-body h3 a {
    color: inherit;
    text-decoration: none;
}

.galfeed-meta {
    margin: 0.28rem 0 0.45rem;
    color: #5f6f87;
    font-size: 0.88rem;
}

.galfeed-dot {
    margin: 0 0.28rem;
}

.galfeed-summary {
    margin: 0 0 0.58rem;
    color: #3f4e64;
}

.galfeed-preview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.galfeed-preview {
    width: 100%;
    aspect-ratio: 14 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dde7f2;
}

.galfeed-preview--video {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #304b65;
    font-size: 0.8rem;
}

.galfeed-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galfeed-preview-label {
    position: absolute;
    right: 0.25rem;
    bottom: 0.2rem;
    padding: 0.12rem 0.28rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.65rem;
}

.galfeed-open {
    display: inline-block;
    text-decoration: none;
    border: 1px solid #c8d8ea;
    background: #f4f8fd;
    color: #1f4a79;
    border-radius: 8px;
    padding: 0.34rem 0.62rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.album-item {
    position: relative;
    display: block;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #d7e3ef;
}

.album-item img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.album-item--video {
    background: #172433;
}

.album-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    aspect-ratio: 3 / 2;
    color: #fff;
    background: linear-gradient(135deg, #172433 0%, #304b65 100%);
}

.album-video-play {
    font-size: 1.25rem;
}

.home-album-card .card-image {
    position: relative;
}

.home-album-video-placeholder {
    min-height: 0;
}

.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.home-feed-grid > .card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.home-feed-grid > .card .card-footer {
    margin-top: auto;
}

@media (max-width: 700px) {
    .home-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .galfeed-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .album-grid,
    .galfeed-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Reusable embed cards */
.embed-gallery-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.8rem 0;
}

.embed-gallery-card {
    border: 1px solid #dbe6f2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.embed-gallery-card img {
    width: 100%;
    display: block;
    aspect-ratio: 14 / 9;
    object-fit: cover;
}

.embed-gallery-card h4 {
    margin: 0;
    padding: 0.6rem 0.65rem 0;
}

.embed-gallery-card p {
    margin: 0;
    padding: 0.4rem 0.65rem 0.7rem;
    color: #4f6078;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .embed-gallery-cards {
        grid-template-columns: 1fr;
    }
}

/* Upcoming events: deliberately distinct from article and album cards */
.events-block {
    margin: 0 0 2.2rem;
    padding: 1.4rem;
    border: 1px solid #d7e6e6;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef8f6 0%, #f8fbff 100%);
}

.events-block--compact {
    margin-bottom: 1.35rem;
    padding: 0.85rem 1rem;
}

.events-block--compact .events-block-heading {
    margin-bottom: 0.65rem;
}

.events-block--compact .events-block-heading h2 {
    font-size: 1.35rem;
}

.events-block--compact .events-list {
    gap: 0.55rem;
}

.events-block--compact .event-entry {
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.7rem;
    border-left-width: 3px;
}

.events-block--compact .event-date-block {
    padding: 0.2rem 0.45rem;
}

.events-block--compact .event-date-day {
    font-size: 1.8rem;
}

.events-block--compact .event-date-month {
    font-size: 0.8rem;
}

.events-block--compact .event-date-year {
    font-size: 0.7rem;
}

.events-block--compact .event-entry-title {
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}

.events-block--compact .event-entry-description {
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}

.events-block--compact .event-entry-details {
    gap: 0.45rem 1.2rem;
    font-size: 0.82rem;
}

.events-block--compact .event-detail-group {
    min-width: 12rem;
}

.events-block-heading {
    margin-bottom: 1rem;
}

.events-block-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: #34777a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.events-block-heading h2 {
    margin: 0;
    color: #172433;
    font-size: 1.65rem;
}

.events-list {
    display: grid;
    gap: 0.85rem;
}

.event-entry {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid #d7e3ef;
    border-left: 5px solid #e0a83d;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(26, 37, 84, 0.06);
}

.event-entry--past {
    border-left-color: #9aaabb;
    opacity: 0.86;
}

.event-date-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-right: 1px solid #e4ebf0;
    color: #34777a;
    text-align: center;
}

.event-date-day {
    color: #172433;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: lowercase;
}

.event-date-year {
    color: #6b7b8f;
    font-size: 0.8rem;
}

.event-entry-content {
    min-width: 0;
}

.event-entry-title {
    margin: 0 0 0.4rem;
    color: #172433;
    font-size: 1.25rem;
}

.event-entry-description {
    margin: 0 0 0.8rem;
    color: #4f6078;
    line-height: 1.45;
}

.event-entry-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: #304b65;
    font-size: 0.92rem;
}

.event-detail-group {
    display: flex;
    min-width: 14rem;
    flex-direction: column;
    gap: 0.15rem;
}

.event-detail-label {
    color: #34777a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-occurrences {
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-occurrences li + li {
    margin-top: 0.2rem;
}

.event-location a {
    color: #34777a;
    font-weight: 700;
}

.events-empty {
    margin: 0;
    color: #4f6078;
}

.events-history {
    margin-top: 2.8rem;
}

.events-block-heading--history {
    margin-bottom: 1rem;
}

.events-extra {
    margin-top: 2rem;
}

@media (max-width: 700px) {
    .events-block {
        padding: 1rem;
    }

    .event-entry {
        grid-template-columns: 5.4rem minmax(0, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .event-date-block {
        padding: 0.3rem;
    }

    .event-date-day {
        font-size: 1.8rem;
    }

    .event-date-month {
        font-size: 0.8rem;
    }

    .event-entry-title {
        font-size: 1.1rem;
    }

    .event-detail-group {
        min-width: 100%;
    }
}

/* Gallery readability: separate album cards clearly */
.galfeed-grid {
    gap: 1.35rem;
}

.galfeed-card {
    border: 1px solid #d7e3ef;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 22px rgba(21, 50, 92, 0.1);
}

.galfeed-card + .galfeed-card {
    margin-top: 0.1rem;
}

.galfeed-body {
    padding: 1rem 1rem 1.05rem;
}

.galfeed-summary {
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.galfeed-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.55rem;
    border: 1px solid #e2ebf5;
    border-radius: 10px;
    background: #f8fbff;
    margin-bottom: 0.75rem;
}

.galfeed-preview {
    border-radius: 8px;
    border: 1px solid #d3dfec;
}

.galfeed-open {
    padding: 0.4rem 0.72rem;
}

@media (max-width: 980px) {
    .galfeed-grid {
        gap: 1rem;
    }
}
