/* AB TRADERS Projects — visual layout based on supplied reference screenshots */
.ab-projects-portfolio {
    --ab-project-orange: #F36B21;
    --ab-project-teal: #0097A3;
    --ab-project-text: #20272B;
    --ab-project-muted: #667176;
    --ab-project-light: #F6F7F7;
    width: 100%;
    color: var(--ab-project-text);
    font-family: Inter, Arial, sans-serif;
}
.ab-projects-portfolio,
.ab-projects-portfolio * { box-sizing: border-box; }
.ab-projects-portfolio { scroll-behavior: smooth; }
.ab-project-category-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 58px;
}
.ab-project-category-tile {
    display: block;
    min-width: 0;
    color: var(--ab-project-orange) !important;
    text-align: center;
    text-decoration: none !important;
}
.ab-project-category-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #EDEFEF;
}
.ab-project-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.ab-project-category-tile:hover .ab-project-category-image img { transform: scale(1.025); }
.ab-project-category-label {
    display: inline-block;
    margin-top: 17px;
    color: var(--ab-project-orange);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-transform: uppercase;
}
.ab-project-section { scroll-margin-top: 110px; }
.ab-project-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 102px;
    padding: 24px 20px;
    background: #FFFFFF;
    text-align: center;
}
.ab-project-section-heading h2 {
    margin: 0;
    color: var(--ab-project-orange);
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(22px, 2.1vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}
.ab-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 28px;
    padding: 20px 20px 34px;
    background: var(--ab-project-light);
}
.ab-project-card { min-width: 0; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; text-align: center; }
.ab-project-card-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #E7E9E9;
}
.ab-project-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-project-title {
    margin: 21px 0 15px;
    color: #11191D;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(17px, 1.55vw, 22px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}
.ab-project-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    color: var(--ab-project-muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}
.ab-project-location-icon { flex: 0 0 28px; width: 28px; height: 28px; fill: var(--ab-project-teal); }
.ab-project-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: #E8EBEB;
    color: #667176;
    font-size: 13px;
    text-align: center;
}
.ab-projects-empty { margin: 0; padding: 24px 20px; background: var(--ab-project-light); color: var(--ab-project-muted); text-align: center; }
.ab-projects-empty-admin { padding: 16px; border-left: 4px solid #F36B21; background: #F6F7F7; }
@media (max-width: 1024px) {
    .ab-project-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding: 28px 18px 42px; }
    .ab-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding: 18px; }
}
@media (max-width: 600px) {
    .ab-project-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 22px 14px 34px; }
    .ab-project-category-label { margin-top: 12px; font-size: 11px; }
    .ab-project-section-heading { min-height: 78px; padding: 20px 14px; }
    .ab-project-section-heading h2 { font-size: 20px; }
    .ab-project-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 16px 14px 28px; }
    .ab-project-title { margin-top: 16px; font-size: 21px; }
    .ab-project-location { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-project-category-image img { transition: none; }
}
