/* Reset main content styles for spotlights page */
main.spotlights-container {
    padding: 2rem 0;
    margin-top: 10px; /* Clear the navbar */
    position: relative;
    z-index: 1;
    width: 100vw;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    background: #ffffff;
}

/* Background styles */
body {
    background: white;
    color: black;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: none;
}

/* Journal Header Styles */
.journal-header {
    text-align: left;
    margin-top: 6rem;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
    padding-right: 1rem;
    box-sizing: border-box;
    margin-left: 0;
}

.journal-header h1 {
    font-size: 5rem;
    font-weight: 100;
    margin-left: 38rem;
    margin-bottom: 0.5rem;
    color: black;
}

.latest-article {
    font-size: 1rem;
    letter-spacing: 1px;
    color: black;
    opacity: 0.8;
    font-weight: 600;
}

/* Journal Categories */
.journal-categories {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-left: 0 !important;
    margin-left: 0rem !important;
}

.journal-categories, .journal-categories * {
    text-decoration: none !important;
}

.category-btn {
    background: none;
    border: none;
    color: black;
    opacity: 0.7;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1.7rem;
    transition: opacity 0.3s, transform 0.3s;
    letter-spacing: 1px;
}

.category-btn:hover {
    opacity: 1;
}

.category-btn.active {
    opacity: 1;
    color: #29a329;
    position: relative;
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #29a329;
}

/* Journal Grid */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.journal-item {
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-item:hover {
    transform: translateY(-5px);
}

.journal-item.featured {
    grid-column: span 8;
    grid-row: span 2;
}

.journal-item.wide {
    grid-column: span 8;
}

.journal-item.tall {
    grid-row: span 2;
}

.journal-item-image {
    width: 100%;
    height: 60%;
    overflow: hidden;
}

.journal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journal-item:hover .journal-item-image img {
    transform: scale(1.05);
}

.journal-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.journal-item-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.journal-item-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.journal-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.journal-item.featured .journal-item-title {
    font-size: 2rem;
}

.read-more {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

.read-more::after {
    content: none;
}

.journal-item:hover .read-more::after {
    transform: none;
}

/* Journal Footer */
.journal-footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 4rem;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.journal-end {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.journal-end h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.journal-end p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #000000;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .journal-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .journal-item {
        grid-column: span 4;
    }
    
    .journal-item.featured {
        grid-column: span 8;
    }
}

@media (max-width: 768px) {
    .journal-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .journal-item {
        grid-column: span 4;
        margin-bottom: 1.5rem;
    }
    
    .journal-item.featured, 
    .journal-item.wide {
        grid-column: span 4;
        grid-row: span 1;
    }
    
    .journal-header h1 {
        font-size: 2rem;
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .journal-categories {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0 1rem;
        justify-content: flex-start;
    }
    
    .category-btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .spotlight-row.quad {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .spotlight-row.quad .spotlight-cell {
        padding: 1.5rem;
        min-height: 200px;
    }

    .spotlight-row.quad .spotlight-cell.spotlight-text {
        padding: 1.5rem;
    }

    .spotlight-title {
        margin-bottom: 1rem;
    }

    .spotlight-name {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .spotlight-subtitle {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .spotlight-role {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .spotlight-read {
        font-size: 1rem;
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .spotlight-image {
        min-height: 200px;
    }

    .spotlight-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .spotlights-container {
        padding: 1rem;
    }
    
    .journal-item-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .journal-item.featured .journal-item-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .spotlight-name {
        font-size: 1.3rem;
    }

    .spotlight-subtitle {
        font-size: 1.1rem;
    }

    .spotlight-role {
        font-size: 1rem;
    }

    .spotlight-read {
        font-size: 0.9rem;
    }
}

/* All footer and social section related CSS removed for isolation test */

.spotlights-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* NASA Credit - Updated Version */
.nasa-credit {
    text-align: center;
    margin: 40px auto 20px;
    font-size: 16px;
    color: white !important;
    font-weight: normal;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    padding: 0 2rem;
    text-transform: none; 
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Force white for social section icons and text */
body .social-section .social-icons a,
body .social-section .social-icons a i,
body .social-section .minimal-icon,
body .social-section h3 {
    color: #fff !important;
    opacity: 1 !important;
}
body .social-section {
    opacity: 1 !important;
}

.footer-light,
.footer {
    opacity: 1 !important;
    filter: none !important;
}

.social-section {
    background: none !important;
}

.social-section h3 {
    color: #fff !important;
}

.social-icons a,
.social-icons a i,
.minimal-icon {
    color: #fff !important;
    opacity: 1 !important;
}

.fab, .far, .fas {
    color: #fff !important;
    opacity: 1 !important;
}

.footer {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 6.5rem 0;
    margin-top: 13rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    clear: both;
    text-align: center;
}

.footer-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1.95rem;
    font-weight: 300;
    color: #fff;
    text-align: center;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.footer-section ul li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 100;
    line-height: 1.5;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    font-weight: 300;
    font-size: 1.2rem;
}

.footer-section a:hover {
    color: #05be30;
}

.footer-bottom {
    max-width: 100%;
    width: 100%;
    margin: 3rem auto 0;
    padding-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #fff;
    position: relative;
    z-index: 3;
    font-weight: 300;
    line-height: 1.4;
}

.footer-bottom p {
    color: #fff;
    font-size: 1rem;
    margin: 2rem 0;
    text-align: center;
    font-weight: 300;
    line-height: 1.5;
}

.social-section {
    text-align: center;
    margin: 2rem 0 0 0;
    padding: 0;
    background: none !important;
}

.social-section h3 {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}

.social-icons a,
.social-icons a i,
.minimal-icon {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.social-icons a:hover {
    color: #05be30 !important;
    opacity: 0.8;
}

.journal-spotlight-list {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
}
.spotlight-row {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.spotlight-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    height: 100%;
    box-sizing: border-box;
}
.spotlight-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.spotlight-name {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
}
.spotlight-subtitle {
    font-size: 2rem;
    font-weight: 100;
    line-height: 1.3;
    opacity: 0.9;
}
.spotlight-role {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.spotlight-read {
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    transform-origin: left center;
    color: white;
    text-decoration: none !important;
    margin-top: auto;
}
.spotlight-read:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none !important;
}
.spotlight-desc {
    font-size: 1.2rem;
}
.spotlight-bg-gold {
    background: #d1c16e;
}
.spotlight-bg-tan {
    background: #b89d6a;
}
.spotlight-image {
    flex: 1 1 50%;
    background: #222;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}
.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}
.read-more {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #000;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background 0.3s;
}
.read-more:hover {
    background: #05be30;
    color: #fff;
}

/* Responsive: stack columns on mobile */
@media (max-width: 900px) {
    .spotlight-row {
        flex-direction: column;
        min-height: 300px;
        height: auto;
        width: 100vw;
    }
    .spotlight-text, .spotlight-image {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        padding: 1.5rem;
        height: auto;
    }
    .spotlight-title {
        font-size: 2rem;
    }
    .spotlight-subtitle {
        font-size: 1rem;
    }
    .spotlight-image img {
        height: 300px;
        max-height: 50vw;
    }
    .journal-header, .journal-categories {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .spotlight-row.quad .spotlight-cell.spotlight-text {
        min-height: 220px;           /* Ensures enough height for content */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Pushes "Read Story" to the bottom */
        padding-bottom: 2rem;        /* Extra space for the link */
    }
}

/* Remove old grid styles */
.journal-grid, .journal-item, .journal-item-image, .journal-item-content, .journal-item-tag, .journal-item-title, .journal-item-date, .read-more, .journal-item.featured, .journal-item.wide, .journal-item.tall {
    all: unset;
    display: revert;
}

@media (max-width: 1200px) {
    main.spotlights-container {
        padding: 1rem 0.5rem;
        margin-top: 60px;
    }
    .journal-header, .journal-categories {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.journal-header, .journal-categories, .spotlights-container {
    text-align: center;
    margin-bottom: 5rem;
}
.journal-categories {
    justify-content: center;
}
.journal-spotlight-list {
    margin-left: auto;
    margin-right: auto;
}
/* Remove global text-align:center from .spotlights-container if present */
.spotlights-container {
    text-align: initial;
}

.journal-header, .journal-categories, .journal-spotlight-list {
    text-align: left;
    padding-left: 5rem;
    padding-right: 1rem;
    margin-left: 0;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .journal-header, .journal-categories, .journal-spotlight-list {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.spotlight-row.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100vh;
  height: auto;
  min-height: 0;
  gap: 0;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.spotlight-row.quad .spotlight-cell {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2.5rem;
  box-sizing: border-box;
}

.spotlight-row.quad .spotlight-image {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.spotlight-row.quad .spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:first-child {
  background: #b38778;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:nth-child(2) {
  background: #2c3e50;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:nth-child(3) {
  background: #34495e;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:last-child {
  background: #444;
  color: white;
}

/* Add hover effect for text cells */
.spotlight-row.quad .spotlight-cell.spotlight-text {
  transition: background-color 0.3s ease;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:hover {
  background-color: #1a1a1a;
}

@media (max-width: 900px) {
  .spotlight-row.quad {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    min-height: 300px;
    height: auto;
  }
}

.journal-spotlight-list > .spotlight-row.quad {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100vw;
  max-width: 100vw;
}

.journal-categories-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
}

@media (max-width: 600px) {
  .journal-categories {
    display: none !important;
  }
  .journal-categories-icon {
    display: block;
  }
}

.journal-categories-dropdown {
  display: none;
  position: absolute;
  top: 8.5rem;
  left: 1rem;
  right: 1rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  z-index: 100;
  flex-direction: column;
  gap: 0.5rem;
}

.journal-categories-dropdown .category-btn {
  display: block;
  width: 100%;
  margin: 0.3rem 0;
  text-align: left;
  color: #222;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}
.journal-categories-dropdown .category-btn.active,
.journal-categories-dropdown .category-btn:hover {
  background: #f0f0f0;
  color: #29a329;
}

@media (max-width: 600px) {
  .journal-categories-dropdown {
    display: flex;
  }
}

@media (min-width: 601px) {
  .journal-categories-dropdown {
    display: none !important;
  }
}

.spotlight-cell a {
    text-decoration: none !important;
    color: inherit;
}

.spotlight-cell a:hover {
    text-decoration: none !important;
}

.spotlight-row.quad .spotlight-image img[alt="Dawn Woolley"] {
    object-position: top;
}

/* Section-specific background colors */
.spotlight-row.quad .spotlight-cell.spotlight-text[data-section="artist"] {
  background: #2c3e50;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text[data-section="curator"] {
  background: #b38778;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text[data-section="institution"] {
  background: #34495e;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text[data-section="journal"] {
  background: #2c3e50;
  color: white;
}

.spotlight-row.quad .spotlight-cell.spotlight-text[data-section="collective"] {
  background: #b89d6a;
  color: white;
}

/* Hover effect for all text cells */
.spotlight-row.quad .spotlight-cell.spotlight-text {
  transition: background-color 0.3s ease;
}

.spotlight-row.quad .spotlight-cell.spotlight-text:hover {
  filter: brightness(0.9);
}

/* Section-specific background colors */
.spotlight-bg-artist {
    background-color: #c68c17 !important;
}

.spotlight-bg-curator {
    background-color: #b38778 !important;
}

.spotlight-bg-institution {
    background-color: #34495e !important;
}

.spotlight-bg-journal {
    background-color: #646464 !important;
}

.spotlight-bg-collective {
    background-color: #700101 !important;
}

/* Remove conflicting rules */
.spotlight-row.quad .spotlight-cell.spotlight-text:first-child,
.spotlight-row.quad .spotlight-cell.spotlight-text:nth-child(2),
.spotlight-row.quad .spotlight-cell.spotlight-text:nth-child(3),
.spotlight-row.quad .spotlight-cell.spotlight-text:last-child {
    background: inherit;
}

/* Hover effect for all cells */
.spotlight-cell {
    transition: background-color 0.3s ease;
}

.spotlight-cell:hover {
    filter: brightness(0.9);
}

.spotlight-img-contain {
    object-fit: cover !important;
    object-position: top !important;
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    background: #fff;
}

.spotlight-row .spotlight-cell.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-row .spotlight-cell.spotlight-text {
  background: #2c3e50; /* or your preferred artist bg color */
  color: white;
}

.spotlight-grid {
  display: grid;
  margin-top: 5;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}

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

.spotlight-item {
  height: 50vh;
  min-height: unset;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
}

.spotlight-item.spotlight-image img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: top;
  display: block;
}

.spotlight-bg-artist-dawn {
  background-color: #e4c169 !important; /* gold for Dawn Woolley */
  color: white;
}
.spotlight-bg-artist-via {
  background-color: #3a3a3b !important; /* dark blue for Via Lewandowsky */
  color: white;
} 