/* ============================================
   UMES Cards Component
   Consolidated card styles used across the site.

   Card Types:
   A) Expandable cards  — .directorship-card, .tech-soc-card
      Cards with a header/logo that expand to reveal a body.
   B) Profile cards      — .executive-card
      Left-accent card with photo, name, position, bio.
   C) Static accent cards — .involvement-card, .council-box, .info-box
      Simple boxes with a red left border for informational content.
   D) Content cards       — .resource-card, .conf-card, .org-card,
                            .sponsor-card, .document-card, .role-card
      White cards for listing resources, sponsors, documents, etc.
   E) Contact CTA         — .contact-cta
      Red gradient call-to-action banner.
   ============================================ */

/* ============================================
   SHARED: Card Header, Logo, Expand Indicator
   Used by expandable cards (Type A)
   ============================================ */

.card-header {
    padding: 1.5rem;
    text-align: center;
    background: #f8f8f8;
    border-bottom: 1px solid #efefef;
    position: relative;
}

.card-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #BA141A;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.card-logo.no-logo {
    background: linear-gradient(135deg, #BA141A 0%, #8f0f14 100%);
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.card-full-name {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.expand-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #BA141A;
    transition: transform 0.3s ease;
}

/* Card Body (expandable) */
.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.card-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   TYPE A: Expandable Cards
   .directorship-card, .tech-soc-card
   ============================================ */

.directorship-card,
.tech-soc-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-left: 3px solid #BA141A;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.directorship-card:hover,
.tech-soc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.directorship-card.expanded,
.tech-soc-card.expanded {
    cursor: default;
}

.directorship-card.expanded .expand-indicator,
.tech-soc-card.expanded .expand-indicator {
    transform: rotate(180deg);
}

.directorship-card.expanded .card-body {
    max-height: 1000px;
    padding: 1.5rem;
}

.tech-soc-card.expanded .card-body {
    max-height: 5000px;
    padding: 1.5rem;
}

/* Tech Soc specific: larger title */
.tech-soc-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Grid layouts for expandable cards */
.directorships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

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

/* ============================================
   TYPE A: Expandable Card — Inner Components
   Members section, info grid, president info,
   card contact
   ============================================ */

/* Council Members Section (inside directorship cards) */
.members-section {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.members-section h4 {
    margin: 0 0 1rem 0;
    color: #BA141A;
    font-size: 1rem;
    border-bottom: 2px solid #BA141A;
    padding-bottom: 0.5rem;
}

.member-item {
    padding: 0.75rem;
    background: #ffffff;
    border-left: 3px solid #BA141A;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.member-item:last-child {
    margin-bottom: 0;
}

.member-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.member-position {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.member-item.head-director {
    border-left-color: #BA141A;
    border-left-width: 4px;
    background: linear-gradient(90deg, #fff5f5 0%, #ffffff 100%);
}

.member-item.head-director .member-position {
    color: #BA141A;
    font-weight: 600;
}

.members-list {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.members-list li {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #efefef;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.members-list li:last-child {
    border-bottom: none;
}

.members-list .member-role {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.no-members {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-style: italic;
}

/* Info Grid (inside tech-soc cards) */
.info-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #BA141A;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.info-value a {
    color: #BA141A;
    text-decoration: none;
    word-break: break-all;
}

.info-value a:hover {
    text-decoration: underline;
}

/* President Info (inside tech-soc cards) */
.president-info {
    background: linear-gradient(135deg, #BA141A 0%, #BA141A 100%);
    color: #ffffff;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
}

.president-info .label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.president-info .name {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Card Contact Footer (inside directorship cards) */
.card-contact {
    background: #BA141A;
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    margin-top: 1rem;
}

.card-contact a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.card-contact a:hover {
    color: #ffeeee !important;
    border-bottom-color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   TYPE B: Profile Cards
   .executive-card
   ============================================ */

.executive-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #BA141A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.executive-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.executive-name {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.executive-position {
    color: #BA141A;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.executive-email {
    color: #3498db;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.executive-email a {
    color: #3498db;
    text-decoration: none;
}

.executive-email a:hover {
    text-decoration: underline;
}

.executive-bio {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.executive-photo {
    float: right;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-left: 1rem;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid #BA141A;
}

.executives-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   TYPE C: Static Accent Cards
   .involvement-card, .council-box, .info-box
   ============================================ */

.involvement-card,
.council-box,
.info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #BA141A;
}

.involvement-card h3,
.info-box h3 {
    margin-top: 0;
    color: #BA141A;
}

.involvement-card h3 {
    font-size: 1.3rem;
}

.info-box ul {
    margin-bottom: 0;
}

/* Timing tag (get-involved page) */
.timing-tag {
    display: inline-block;
    background: #BA141A;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.subsection-header {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Rules list (room-booking) */
.rules-list {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: #BA141A;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-right: 10px;
    font-weight: bold;
}

/* ============================================
   TYPE D: Content Cards
   .resource-card, .conf-card, .org-card,
   .sponsor-card, .document-card, .role-card
   ============================================ */

.resource-card,
.conf-card,
.org-card,
.sponsor-card,
.document-card,
.role-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover,
.conf-card:hover,
.org-card:hover,
.sponsor-card:hover,
.document-card:hover,
.role-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card headings */
.resource-card h3,
.conf-card h3,
.org-card h3,
.role-card h3 {
    color: #BA141A;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.resource-card p,
.conf-card p,
.org-card p,
.role-card p {
    color: #555;
    margin-bottom: 1rem;
}

.resource-card .actions,
.conf-card .actions,
.org-card .actions {
    margin-bottom: 0;
}

/* Office tag (student-group-resources) */
.resource-card .office-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #BA141A;
    background: #fff0f0;
    border: 1px solid #BA141A;
    border-radius: 4px;
    padding: 0.1rem 0.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Conference card extras */
.conf-card .conf-date {
    font-style: italic;
    color: #888;
    font-size: 0.9em;
    margin: 0 0 0.75rem;
}

.conf-card .conf-date:empty {
    display: none;
}

.conf-card ul {
    color: #555;
    margin-bottom: 1rem;
}

/* Sponsor card extras */
.sponsor-card {
    text-align: center;
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(186, 20, 26, 0.2);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.sponsor-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.sponsor-description {
    color: #555;
    margin-bottom: 1rem;
}

/* Sponsor tier borders */
.tier-gold    { border-left: 4px solid #FFD700; }
.tier-silver  { border-left: 4px solid #C0C0C0; }
.tier-bronze  { border-left: 4px solid #CD7F32; }
.tier-partner { border-left: 4px solid #BA141A; }
.tier-friend  { border-left: 4px solid #6B8E23; }

.sponsor-tier {
    margin-bottom: 3rem;
}

.sponsor-tier h2 {
    color: #BA141A;
    border-bottom: 2px solid #BA141A;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Document card extras (advocacy, tutoring, sponsors) */
.document-card h3,
.document-card h4 {
    margin-top: 0;
    color: #333;
}

/* Document card with image layout (sponsors page) */
.document-header {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.document-image {
    flex-shrink: 0;
    width: 180px;
}

.document-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-image.no-image {
    background: linear-gradient(135deg, #f8f8f8 0%, #efefef 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: #999;
    font-size: 3rem;
}

.document-content {
    flex: 1;
    min-width: 0;
}

.document-content h2 {
    margin-top: 0;
    color: #BA141A;
}

.document-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Document card with border-left accent (advocacy page) */
.document-card.accent {
    border-left: 4px solid #BA141A;
    background: #f8f8f8;
    padding: 2rem;
}

.document-card.accent h3 {
    color: #BA141A;
}

/* Document actions (shared by advocacy, tutoring, sponsors) */
.document-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.document-actions .button {
    margin: 0;
}

/* PDF embed container */
.pdf-embed-container {
    border-top: 1px solid #efefef;
    background: #f8f8f8;
    padding: 2rem;
    display: none;
}

.pdf-embed-container.active {
    display: block;
}

.pdf-embed-container iframe {
    width: 100%;
    height: 700px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
}

/* Role card extras (council-structure) */
.role-card h3 {
    color: #BA141A;
    margin-bottom: 0.5rem;
}

/* Org chart placeholder (council-structure) */
.org-chart-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    color: #999;
    margin: 2rem 0;
}

.org-chart-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

/* ============================================
   TYPE E: Contact CTA
   .contact-cta
   ============================================ */

.contact-cta {
    background: linear-gradient(135deg, #BA141A 0%, #8f0f14 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.contact-cta h3 {
    color: #ffffff;
    margin-top: 0;
}

.contact-cta p {
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.contact-cta a {
    color: #ffffff !important;
    border: none !important;
    text-decoration: underline;
    font-weight: bold;
}

.contact-cta a:hover {
    text-decoration: none;
}

/* Conference-style compact CTA */
.contact-cta.compact {
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: left;
}

.contact-cta.compact p {
    font-size: 0.95em;
}

.contact-cta.compact a {
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    padding: 0.3em 0.85em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.88em;
    margin-right: 0.4rem;
    transition: background 0.2s, box-shadow 0.2s;
}

.contact-cta.compact a:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px #fff;
}

.contact-cta-actions {
    padding: 0.15rem 0 0.5rem;
}

/* ============================================
   SHARED: Loading, Error, Empty States
   ============================================ */

.loading-message {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
}

.no-societies,
.no-documents {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* ============================================
   SHARED: Page Header (executive, etc.)
   ============================================ */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #BA141A;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.stats {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   SHARED: Video Container
   ============================================ */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   SHARED: Content Section
   ============================================ */

.content-section {
    margin: 3rem 0;
}

.content-section:first-child {
    margin-top: 0;
}

.documents-section,
.documents-container {
    margin: 2rem 0;
}

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

@media screen and (max-width: 980px) {
    .directorships-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .tech-socs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 736px) {
    .directorships-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .document-header {
        flex-direction: column;
    }

    .document-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .pdf-embed-container iframe {
        height: 400px;
    }

    .document-actions {
        flex-direction: column;
    }

    .document-actions .button {
        width: 100%;
    }

    /* Executive card: stack photo above text */
    .executive-card {
        padding: 1.25rem;
    }

    .executive-photo {
        float: none;
        display: block;
        margin: 0 auto 1rem auto;
    }

    .executive-name {
        font-size: 1.2rem;
        text-align: center;
    }

    .executive-position {
        text-align: center;
    }

    .executive-email {
        text-align: center;
    }

    /* Reduce container padding */
    .executives-container {
        padding: 1rem 0;
    }

    /* Page header */
    .page-header h1 {
        font-size: 1.8rem;
    }

    /* Static accent cards */
    .involvement-card,
    .council-box,
    .info-box {
        padding: 1.25rem;
    }

    /* Content cards */
    .resource-card,
    .conf-card,
    .org-card,
    .sponsor-card,
    .document-card,
    .role-card {
        padding: 1.25rem;
    }

    .document-header {
        padding: 1.25rem;
    }

    /* Contact CTA */
    .contact-cta {
        padding: 1.5rem 1.25rem;
    }

    /* Card body expanded */
    .directorship-card.expanded .card-body,
    .tech-soc-card.expanded .card-body {
        padding: 1rem;
    }

    /* Info grid stacks on mobile */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Sponsor tier heading */
    .sponsor-tier h2 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .card-logo {
        width: 90px;
        height: 90px;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .tech-soc-card .card-title {
        font-size: 1.2rem;
    }

    .sponsor-name {
        font-size: 1.1rem;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

/* --- Type A: Expandable cards --- */
body.dark-mode .directorship-card,
body.dark-mode .tech-soc-card {
    background: #252525;
    border-color: rgba(80, 85, 90, 0.4);
    border-left-color: #BA141A;
}

body.dark-mode .directorship-card:hover,
body.dark-mode .tech-soc-card:hover {
    box-shadow: 0 4px 12px rgba(208, 26, 32, 0.2);
}

body.dark-mode .card-header {
    background: #1e1e1e;
    border-bottom-color: rgba(80, 85, 90, 0.4);
}

body.dark-mode .card-title {
    color: #e0e5e8;
}

body.dark-mode .card-full-name {
    color: #888f95;
}

body.dark-mode .card-description {
    color: #888f95;
}

body.dark-mode .card-logo {
    background: #1e1e1e;
}

body.dark-mode .members-section {
    background: #1e1e1e;
}

body.dark-mode .member-item {
    background: #2a2a2a;
    border-left-color: #BA141A;
}

body.dark-mode .member-item.head-director {
    background: linear-gradient(90deg, #2d1a1b 0%, #2a2a2a 100%);
}

body.dark-mode .member-name {
    color: #e0e5e8;
}

body.dark-mode .member-position {
    color: #888f95;
}

body.dark-mode .members-list li {
    color: #b0b8bf;
    border-bottom-color: rgba(80, 85, 90, 0.4);
}

body.dark-mode .members-list .member-role {
    color: #888f95;
}

body.dark-mode .info-item {
    background: #1e1e1e;
    border-color: rgba(80, 85, 90, 0.4);
    color: #b0b8bf;
    border-left-color: #BA141A;
}

body.dark-mode .info-item h4,
body.dark-mode .info-label {
    color: #888f95;
}

body.dark-mode .info-value {
    color: #e0e5e8;
}

/* --- Type B: Profile cards --- */
body.dark-mode .executive-card {
    background: #252525;
    border-left-color: #BA141A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .executive-card:hover {
    box-shadow: 0 4px 12px rgba(208, 26, 32, 0.2);
}

body.dark-mode .executive-name {
    color: #e0e5e8;
}

body.dark-mode .executive-bio {
    color: #888f95;
}

body.dark-mode .executive-photo {
    background: #1e1e1e;
}

/* --- Type C: Static accent cards --- */
body.dark-mode .involvement-card,
body.dark-mode .council-box,
body.dark-mode .info-box {
    background: #252525;
    border-left-color: #BA141A;
}

body.dark-mode .involvement-card h3,
body.dark-mode .info-box h3 {
    color: #d01a20;
}

body.dark-mode .involvement-card p,
body.dark-mode .council-box p,
body.dark-mode .info-box p {
    color: #888f95;
}

body.dark-mode .rules-list {
    background: #2d2a1b;
    border-left-color: #ffc107;
    color: #b0b8bf;
}

/* --- Type D: Content cards --- */
body.dark-mode .resource-card,
body.dark-mode .conf-card,
body.dark-mode .org-card,
body.dark-mode .sponsor-card,
body.dark-mode .document-card,
body.dark-mode .role-card {
    background: #252525;
    border-color: rgba(80, 85, 90, 0.4);
}

body.dark-mode .resource-card:hover,
body.dark-mode .conf-card:hover,
body.dark-mode .org-card:hover,
body.dark-mode .sponsor-card:hover,
body.dark-mode .document-card:hover,
body.dark-mode .role-card:hover {
    box-shadow: 0 4px 12px rgba(208, 26, 32, 0.2);
}

body.dark-mode .resource-card h3,
body.dark-mode .conf-card h3,
body.dark-mode .org-card h3,
body.dark-mode .role-card h3 {
    color: #d01a20;
}

body.dark-mode .resource-card p,
body.dark-mode .conf-card p,
body.dark-mode .org-card p,
body.dark-mode .role-card p {
    color: #f5f5f5 !important;
}

body.dark-mode .resource-card .office-tag {
    background: #2d1a1b;
    border-color: #BA141A;
    color: #d01a20;
}

body.dark-mode .conf-card .conf-date {
    color: #666d73;
}

body.dark-mode .sponsor-name {
    color: #e0e5e8;
}

body.dark-mode .sponsor-description {
    color: #888f95;
}

body.dark-mode .sponsor-tier h2 {
    color: #d01a20;
    border-bottom-color: #BA141A;
}

body.dark-mode .document-card h3,
body.dark-mode .document-card h4 {
    color: #e0e5e8;
}

body.dark-mode .document-card p {
    color: #888f95;
}

body.dark-mode .document-content h2 {
    color: #d01a20;
}

body.dark-mode .document-description {
    color: #888f95;
}

body.dark-mode .document-image.no-image {
    background: linear-gradient(135deg, #252525 0%, #1e1e1e 100%);
}

body.dark-mode .pdf-embed-container {
    background: #1e1e1e;
    border-top-color: rgba(80, 85, 90, 0.4);
}

body.dark-mode .org-chart-placeholder {
    background: #252525;
    border-color: rgba(80, 85, 90, 0.4);
    color: #888f95;
}

/* --- Type E: Contact CTA (already dark by design, minimal changes) --- */
body.dark-mode .contact-cta {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Shared: Page header --- */
body.dark-mode .page-header {
    border-bottom-color: #BA141A;
}

body.dark-mode .page-header h1 {
    color: #e0e5e8;
}

body.dark-mode .page-header p {
    color: #888f95;
}

body.dark-mode .stats {
    background: #1e1e1e;
}

/* --- Shared: Loading & Error --- */
body.dark-mode .loading-message {
    color: #888f95;
}

body.dark-mode .error-message {
    background: #2d1a1b;
    color: #e57373;
}

body.dark-mode .no-societies,
body.dark-mode .no-documents {
    background: #252525;
    color: #888f95;
}

/* Red-background elements — force white text so links aren't invisible */
body.dark-mode .card-contact,
body.dark-mode .president-info,
body.dark-mode .timing-tag,
body.dark-mode .step-number {
    color: #ffffff !important;
}

body.dark-mode .card-contact a,
body.dark-mode .president-info a {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .card-contact a:hover,
body.dark-mode .president-info a:hover {
    color: #ffeeee !important;
    border-bottom-color: rgba(255, 255, 255, 0.8) !important;
}
