/* ===== GLOBAL ===== */

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f172a, #0a58cac4);
    min-height: 98vh;
}

/* ===== MAIN PANEL ===== */

#outer {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== GRID ===== */

.container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Always max 4 */
    gap: 30px;
    width: 100%;
}

/* ===== CARD STYLE BUTTONS ===== */

.logoHolder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo sizing */
.logo,
.logo2 {
    max-width: 185px;
    max-height: 125px;
    object-fit: contain;
}

/* ===== MODAL ===== */

.modal-content {
    background: white;
    border-radius: 20px;
    border: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-title {
    color: #111;
    font-weight: 600;
    font-size: 20px;
}

.modal-body {
    padding: 40px;
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
}

/* ===== Ticket Button Styling ===== */

button.logo {
    background: none !important;
    border: none !important;
    padding: 0;
    box-shadow: none;
}

/* ===== Theme Button ===== */

button[onclick="halloween()"] {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    padding: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

    button[onclick="halloween()"]:hover {
        transform: scale(1.1);
    }

/* Card Blocks (for HQ & Learning Hub) */
.cardBlock {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

    .cardBlock:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        background: rgba(255, 255, 255, 0.18);
    }

.cardLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 8px;
}

.cardTitle {
    font-size: 15px;
    font-weight: 600;
}

.cardSub {
    font-size: 13px;
    opacity: 0.7;
}

.cardSmallLink {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    text-decoration: none;
    color: #111 !important;
    opacity: 1;
}

    .cardSmallLink:hover {
        text-decoration: underline;
    }

/* Slightly smaller desktops */
@media (max-width: 1400px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.verticalCard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

    .verticalCard:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        background: rgba(255, 255, 255, 0.18);
    }

.noStyle {
    text-decoration: none;
    color: inherit;
}

.subLink {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

.subLinkSmall {
    font-size: 12px;
    opacity: 0.7;
}

/* Force readable text inside cards */
.verticalCard,
.verticalCard a,
.cardSmallLink {
    color: #111 !important;
}

/* ===== UNIFIED PORTAL CARD ===== */

.logoHolder,
.verticalCard {
    display: flex;
    justify-content: center;
    height: 205px;
}

.portalCard {
    width: 100%;
    max-width: 220px; /* fixed width */
    height: 215px; /* fixed height — this is the key */
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #111;
}

    .portalCard:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        background: rgba(255, 255, 255, 0.18);
    }

.portalCardImportant {
    width: 100%;
    max-width: 240px; /* fixed width */
    height: 215px; /* fixed height — this is the key */
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #111;
    /* Visible gold border */
    border: 5px solid goldenrod;
}

    .portalCardImportant:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px gold;
        background: rgba(255, 255, 255, 0.8);
    }

/* Card caption under the logo */
.portalCardTitle {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

/* ===== Admin link (top-right) ===== */

.portalSignIn {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 1030;
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

    .portalSignIn:hover {
        opacity: 1;
    }
