/* ==========================================================================
   COMPONENTS.CSS - ACM Collective Intelligence 2026
   Reusable UI elements (Headers, CTAs, Tables, Highlight Boxes, Profiles)
   Included on EVERY page.
   ========================================================================== */

/* --------------------------------------------------
   1. Subpage Headers (Used on all pages except Home)
   -------------------------------------------------- */
.subpage-header {
    background-color: #1c1d21;
    color: var(--vt-white);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.subpage-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
                    rgba(134, 31, 65, 0.9) 0%, 
                    rgba(28, 29, 33, 0.75) 100%), 
                url('../images/ab1aerial.jpg') no-repeat center 10% / cover;
    z-index: 1;
}

.subpage-header .header-wrapper {
    position: relative;
    z-index: 2;
}

.subpage-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--vt-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Breadcrumbs with standardized 'soft white' visual hierarchy */
.header-breadcrumbs {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.header-breadcrumbs a {
    color: var(--vt-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-breadcrumbs a:hover {
    color: var(--vt-burnt-orange);
}

.header-breadcrumbs .active-crumb {
    color: var(--vt-burnt-orange);
}


/* --------------------------------------------------
   2. Call To Action (CTA) Boxes
   -------------------------------------------------- */
.cta-box {
    background-color: var(--vt-smoke);
    border-left: 4px solid var(--vt-burnt-orange);
    padding: 2.5rem;
    margin-bottom: 4.5rem; /* Matches global vertical rhythm */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border-radius: 0 4px 4px 0;
}

.cta-box h3 {
    color: var(--vt-maroon);
    margin-bottom: 0.5rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    max-width: 950px;
}

/* Flex layout ensures buttons stay aligned on desktop and stack cleanly on mobile */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--vt-maroon);
    color: var(--vt-white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.05rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-bottom: 3px solid var(--vt-burnt-orange);
}

.cta-button:hover {
    background-color: var(--vt-impact-orange);
    color: var(--vt-white);
    text-decoration: none;
    transform: translateY(-2px);
}


/* --------------------------------------------------
   3. Highlight Boxes (Alerts/Important Info)
   -------------------------------------------------- */
.highlight-box {
    background-color: rgba(134, 31, 65, 0.04); /* Soft tint of vt-maroon */
    border-left: 4px solid var(--vt-maroon);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.highlight-box code {
    background-color: rgba(0, 0, 0, 0.06);
    color: #2b2b2b;
}


/* --------------------------------------------------
   4. Simplified Profile Columns (.chairs-simple)
   -------------------------------------------------- */
.chairs-simple {
    display: flex;
    gap: 3.5rem;
    margin-top: 1.5rem;
}

.chairs-simple-column {
    flex: 1;
}

.chairs-simple-column h3 {
    color: var(--vt-maroon);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.chairs-simple-column p {
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --------------------------------------------------
   5. Data Tables
   -------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 2.5rem 0;
    border: 1px solid var(--vt-grey);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vt-smoke);
    vertical-align: top;
}

th {
    background-color: var(--vt-maroon); 
    color: var(--vt-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background-color: rgba(229, 225, 230, 0.25); /* Subtle variant of vt-smoke */
}


/* --------------------------------------------------
   Responsive Adjustments for Components
   -------------------------------------------------- */
@media (max-width: 768px) {
    .subpage-header {
        padding: 3rem 1.5rem;
    }
    
    .subpage-header h1 {
        font-size: 2rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .chairs-simple {
        flex-direction: column;
        gap: 2rem;
    }
    
    th, td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}