.platform-link {
    transition: transform 0.2s;
    text-decoration: none;
}
.platform-link:hover {
    transform: scale(1.1);
}
.platform-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.game-image, .asset-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card {
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.game-card {
    min-height: 400px; /* Specific to game and asset cards */
    transition: transform 0.2s; /* Only transform has transition */
    border: 1.5px solid #ced4da; /* normal border */
}

.game-card:hover {
    border-color: #000000; /* black border on hover */
    border-width: 2.5px;   /* thicker border */
    transform: scale(1.05);
}

.news-card {
    min-height: 350px; /* Increased to match game/asset card height */
    transition: transform 0.2s; /* Only transform has transition */
    border: 1.5px solid #ced4da; /* normal border */
}

.news-card:hover {
    border-color: #000000; /* black border on hover */
    border-width: 2.5px;   /* thicker border */
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1rem; /* Keep reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card .card-title {
    border-bottom: 1px solid #e0e0e0; /* Faint line below title */
    padding-bottom: 0.5rem; /* Space below title */
    margin-bottom: 0.75rem; /* Space before description */
}

.news-card .card-text {
    line-clamp: none; /* Remove truncation */
    -webkit-line-clamp: unset; /* Remove WebKit truncation */
    max-height: none; /* Allow full height */
    flex-grow: 1; /* Expand to fill space */
    overflow: visible; /* Ensure text is not cut off */
}

.newsletter-card {
    min-height: auto; /* Allow natural height for newsletter card */
}

.card:hover {
    transform: scale(1.05);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    word-wrap: break-word;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: 4.5em;
}

.platform-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 30px;
}

.navbar-brand-logo {
    height: 40px;
    margin-right: 10px;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px; /* for fixed navbar */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    flex-shrink: 0; /* footer stays at bottom */
}

.newsletter-wrapper {
    padding: 30px 15px;
}
.newsletter-wrapper .card {
    background-color: #fff;
}

.newsletter-card {
    border: 1.5px solid #ced4da; /* normal border */
    transition: border-color 0.3s ease, border-width 0.3s ease;
}

.newsletter-card:hover {
    border-color: #343a40; /* darker gray */
    border-width: 2.5px;   /* thicker border */
    transform: none !important;
    box-shadow: none !important; /* no shadow */
    background-color: transparent !important; /* no background change */
}

.table {
  table-layout: fixed;
  width: 100%;
}

.description-col {
  max-width: 300px;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tab-pane {
  overflow-x: auto;
}

.table {
  table-layout: fixed;
  width: 100%;
}

th, td {
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 6px;
    border-radius: 50%;
    background-color: #313131;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.2);
    background-color: #777;
}

/* Header background color */
.navbar.bg-dark {
    background-color: #1b1b1b !important; /* Dark blue, overrides Bootstrap's bg-dark */
}

/* Footer background color */
footer.bg-dark {
    background-color: #1b1b1b !important; /* Dark gray, overrides Bootstrap's bg-dark */
}
