html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f4f8f5 0%, #ffffff 100%);
}

.hero-title {
    font-size: 42px;
    font-weight: 600;
    color: #1f3d2b;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #4a5c50;
}

.upload-zone {
    max-width: 700px;
    margin: auto;
    padding: 60px;
    border: 3px dashed #2e6f4e;
    border-radius: 18px;
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-zone.dragover {
    background: #e8f3ec;
    border-color: #1f4d35;
}

.upload-icon {
    font-size: 48px;
    color: #2e6f4e;
}

.upload-zone.uploading {
    background: #f4f8f6;
    border-color: #1f4d35;
}

.upload-zone.complete {
    background: #e6f4ea;
    border-color: #198754;
}

.upload-zone.complete .upload-icon {
    color: #198754;
}

.feature-icon {
    font-size: 40px;
    color: #2e6f4e;
    margin-bottom: 15px;
}

.sponsor-section {
    background: #f4f8f5;
    font-size: 14px;
    color: #6b7c72;
}

.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.resource-card {
    border-radius: 0.75rem;
    border: 1px solid #89939E;
    background-color: white;
    color: #0F1720;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-card .resource-card-header {
    font-size: 1.25rem;
}

.resource-card .resource-card-top-tag {
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
    border-radius: 5px;
}

.resource-card .resource-card-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #89939E;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    background-color: #E6EAED;
}

.resource-card .resource-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resource-card .resource-card-footer {
    margin-top: auto;
}

.resource-card .resource-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.resource-card .resource-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    border-radius: 999px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.truncate-text {
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.truncate-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.read-more-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: #0d6efd;
    cursor: pointer;
}

.read-more-btn:hover {
    text-decoration: underline;
}

#bulletinGrid tr.group-end td,
#bulletinGrid td[rowspan] {
    border-bottom: 1px solid #ccc;
}

#bulletinGrid a {
    color: #0d6efd;
    text-decoration: underline;
}