:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #059669;
    --bg-color: #F9FAFB;
    --surface: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Header */
.global-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-bar input {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    width: 300px;
    outline: none;
    transition: all 0.2s;
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    color: var(--text-main);
    border: 1px solid #E5E7EB;
    margin-right: 10px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.trending-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    background: var(--surface);
    border: 1px solid #E5E7EB;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Pure CSS Masonry Grid */
.masonry-grid {
    column-count: 4;
    column-gap: 20px;
    padding-bottom: 60px;
}

.notice-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.notice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.notice-card img {
    width: 100%;
    display: block;
}

.notice-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: white;
}

.school-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.school-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.notice-overlay h3 {
    font-size: 16px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.badge {
    background: var(--secondary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .masonry-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .masonry-grid { column-count: 2; }
    .search-bar { display: none; }
}
@media (max-width: 480px) {
    .masonry-grid { column-count: 1; }
}