/* Import Google Font - Alan Sans */
@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@400;500;700&display=swap');

body {
  font-family: 'Alan Sans', sans-serif;
  background: #242424;
  margin: 0;
  padding: 0;
  color: #fff;
}




/* ===== HEADER ===== */
header {
    background: #242424;
    color: #fff;
    padding: 25px 15px;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}
header p {
    margin: 8px 0 0;
    font-size: 16px;
    opacity: 0.9;
}

/* ===== HERO GRID ===== */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 20px;
    max-width: 1400px;
    margin: 5px auto;
    padding: 0 20px;
}

/* Slideshow */
.slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
}
.slides a {
    min-width: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.slides img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.slide-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px;
    font-size: 30px;
    font-weight: bold;
    border-radius: 5px;
}

/* Slideshow nav */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    /* background: rgba(0,0,0,0.5); */
    border-radius: 50%;
    user-select: none;
}
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* Top Stories with actions */
.top-stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.top-story-card {
    background: #333333;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.top-story {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}
.top-story img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
}
.top-story h3 {
    font-size: 14px;
    margin: 0 0 5px;
}
.top-story small {
    font-size: 12px;
    color: #fff;
}
.top-story-card .card-actions {
    border-top: 1px solid #242424;
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    background: #333333;
}

/* ===== MASONRY 4 COLUMNS ===== */
.masonry {
    column-count: 4;
    column-gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ===== CARDS ===== */
.card {
    background: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: inline-block;
    margin: 0 0 20px;
    width: 100%;
    transition: transform 0.2s;
    break-inside: avoid;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: 15px;
}
.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}
.card p {
    font-size: 14px;
    color: #fff;
    margin: 0 0 8px;
}
.card small {
    display: block;
    color: #fff;
    font-size: 12px;
}

/* Card actions */
.card-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px 15px;
    border-top: 1px solid #242424;
    font-size: 14px;
    background:#333333;
}
.card-actions span {
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.card-actions span:hover {
    color: #fff;
}
.card-actions i {
    font-size: 16px;
}

/* ===== SHARE MENU POPUP ===== */
.share-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}
.share-menu a {
    text-decoration: none;
    font-size: 14px;
    color: #007BFF;
    transition: color 0.2s;
}
.share-menu a:hover {
    color: #0056b3;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 40px;
    background: #242424;
    color: #fff;
    padding: 15px;
    text-align: center;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 14px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    transition: background 0.3s;
}
#backToTop:hover {
    background: #3c3c3c;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .masonry { column-count: 3; }
    .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .masonry { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry { column-count: 1; }
}

/* ===== LINKS CLEAN ===== */
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: none;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    margin: 10px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 5px 5px;
}
.search-bar input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #333;
}
.search-bar button {
    background: #000;
    border: none;
    border-radius: 50%;
    padding: 10px 14px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: background 0.3s;
}
.search-bar button:hover {
    background: #333;
}
