/* ENHANCED NEWSPAPER */
:root {
    --paper-white: #ffffff;
    --paper-black: #000000;
    --paper-gray: #666666;
    --accent-red: #cc0000;
    --accent-blue: #0066cc;
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    line-height: 1.3;
    color: var(--paper-black);
    background: linear-gradient(45deg, #f0f8ff, #fff8dc, #f0fff0, #fffacd);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    margin: 0;
    padding: 10px;
    position: relative;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Add floating newspaper elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,0,0,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0,0,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0,255,0,0.03) 0%, transparent 50%);
    z-index: -1;
}

/* Newspaper nameplate effect */
.main-title::before {
    content: '★ ★ ★';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--headline-red);
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

@keyframes newspaper-title {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(0.2deg); }
    50% { transform: scale(0.99) rotate(-0.2deg); }
    75% { transform: scale(1.005) rotate(0.1deg); }
}

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

/* ENHANCED NEWSPAPER HEADER */
.header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border: 3px solid var(--paper-black);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-red) 0px,
        var(--accent-red) 15px,
        var(--accent-blue) 15px,
        var(--accent-blue) 30px,
        var(--paper-black) 30px,
        var(--paper-black) 45px
    );
    animation: color-bar 3s linear infinite;
}

@keyframes color-bar {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.header-content {
    position: relative;
    z-index: 2;
}

.main-title {
    font-family: 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--paper-black);
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #ccc, 4px 4px 0px rgba(0,0,0,0.1);
    animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 2px 2px 0px #ccc, 4px 4px 0px rgba(0,0,0,0.1);
        transform: scale(1);
    }
    50% {
        text-shadow: 2px 2px 0px #999, 4px 4px 0px rgba(0,0,0,0.2);
        transform: scale(1.02);
    }
}

.subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    color: var(--paper-gray);
    font-style: italic;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.5);
}

@keyframes spin-colors {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes spin-text {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.02); }
    50% { transform: rotate(-1deg) scale(0.98); }
    75% { transform: rotate(0.5deg) scale(1.01); }
}

/* Floating Shapes Animation */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Navigation Styles */
.nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid var(--paper-black);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-list {
        gap: 1rem;
    }
}

.nav-link {
    display: inline-block;
    color: var(--paper-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid var(--paper-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    size: 100px;
}

/* ENHANCED NEWSPAPER SECTIONS */
.section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin-bottom: 2rem;
    padding: 2rem;
    border: 2px solid var(--paper-black);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-3px) rotate(0.5deg);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-red);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue), var(--accent-red));
    animation: section-glow 3s ease-in-out infinite;
}

@keyframes section-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--paper-black);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px #ccc;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-red);
    animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {
    0%, 100% { width: 100px; opacity: 0.7; }
    50% { width: 120px; opacity: 1; }
}

@keyframes typewriter {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.02) rotate(0.5deg); }
    50% { transform: scale(0.98) rotate(-0.5deg); }
    75% { transform: scale(1.01) rotate(0.2deg); }
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* ENHANCED SCHEDULE */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.day-card {
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.8) 0%, transparent 50%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    background-size: 100% 100%, 200% 200%;
    background-position: 0% 0%, 0% 0%;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--paper-black);
    border-radius: 8px;
    border-left: 6px solid var(--accent-red);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--accent-blue);
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
    animation: card-highlight 3s ease-in-out infinite;
}

@keyframes card-highlight {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.day-header h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--paper-black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status.na {
    background: linear-gradient(135deg, #000000, #333333);
    color: #fff;
}

.status.advisory {
    background: linear-gradient(135deg, #666666, #999999);
    color: #fff;
}

.activity {
    font-size: 1rem;
    color: var(--paper-gray);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* ENHANCED ACTIVITIES */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.activity-card {
    background:
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.9) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(240,244,248,0.7) 0%, transparent 40%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    background-size: 150px 150px, 100px 100px, 100% 100%;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--paper-black);
    border-radius: 8px;
    border-top: 6px solid var(--accent-blue);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: var(--shadow-medium);
    border-top-color: var(--accent-red);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    animation: activity-highlight 3s ease-in-out infinite;
}

@keyframes activity-highlight {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.activity-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--paper-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.activity-card p {
    font-size: 0.95rem;
    color: var(--paper-gray);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* ENHANCED TRENDS SECTION */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.trend-card {
    background:
        radial-gradient(circle at 25% 75%, rgba(255,245,245,0.8) 0%, transparent 45%),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.9) 0%, transparent 45%),
        linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fef7f7 100%);
    background-size: 120px 120px, 80px 80px, 100% 100%;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--accent-red);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trend-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: #ff4444;
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4444, #ff8844, #ff4444);
    animation: trend-glow 2s ease-in-out infinite;
}

@keyframes trend-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.trend-card.hot {
    border-left: 8px solid #ff4444;
}

.trend-card.popular {
    border-left: 8px solid #8844ff;
}

.trend-card.trending {
    border-left: 8px solid #44ff88;
}

.trend-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-red), #ff8844);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: trend-pulse 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@keyframes trend-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.trend-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--paper-black);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.trend-card p {
    font-size: 0.9rem;
    color: var(--paper-gray);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* ENHANCED DRAMA SECTION */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.drama-card {
    background:
        radial-gradient(circle at 35% 65%, rgba(248,248,255,0.9) 0%, transparent 45%),
        radial-gradient(circle at 65% 35%, rgba(255,255,255,0.8) 0%, transparent 45%),
        linear-gradient(135deg, #f8f8ff 0%, #ffffff 50%, #fafaff 100%);
    background-size: 130px 130px, 90px 90px, 100% 100%;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drama-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: #4444ff;
}

.drama-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4444ff, #8844ff, #4444ff);
    animation: drama-glow 2.5s ease-in-out infinite;
}

@keyframes drama-glow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.drama-card.mystery {
    border-left: 8px solid #8844ff;
}

.drama-card.scandal {
    border-left: 8px solid #ff4444;
}

.drama-card.rumor {
    border-left: 8px solid #ffaa44;
}

.drama-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-blue), #8844ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: drama-pulse 3s ease-in-out infinite;
}

@keyframes drama-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(-5deg); }
}

.drama-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--paper-black);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.drama-card p {
    font-size: 0.9rem;
    color: var(--paper-gray);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Articles Section */
.articles-section {
    background:
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.9) 0%, transparent 45%),
        radial-gradient(circle at 75% 25%, rgba(248,248,255,0.8) 0%, transparent 45%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #fafaff 100%);
    background-size: 150px 150px, 100px 100px, 100% 100%;
}

.articles-container {
    position: relative;
    min-height: 300px;
}

.no-articles-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed var(--paper-gray);
    border-radius: 12px;
    max-width: 400px;
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    animation: edit-bounce 2s ease-in-out infinite;
}

@keyframes edit-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--paper-black);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.empty-state p {
    font-size: 1rem;
    color: var(--paper-gray);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.edit-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.edit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.edit-btn i {
    font-size: 1.1rem;
}

.articles-content {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--paper-black);
    border-radius: 8px;
    padding: 2rem;
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--paper-black);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.articles-content[contenteditable="true"] {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.2);
    outline: none;
}

.articles-content[contenteditable="true"]:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(0, 102, 204, 0.3);
}

.articles-content h1,
.articles-content h2,
.articles-content h3,
.articles-content h4,
.articles-content h5,
.articles-content h6 {
    font-family: 'Times New Roman', serif;
    font-weight: 900;
    color: var(--paper-black);
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.articles-content p {
    margin: 0.5rem 0;
    color: var(--paper-gray);
}

.articles-content[contenteditable="true"] h1,
.articles-content[contenteditable="true"] h2,
.articles-content[contenteditable="true"] h3,
.articles-content[contenteditable="true"] h4,
.articles-content[contenteditable="true"] h5,
.articles-content[contenteditable="true"] h6 {
    color: var(--accent-blue);
}

.articles-content[contenteditable="true"] p {
    color: var(--paper-black);
}

/* Student of the Week Section */
.student-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .student-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.student-photo {
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    border: 3px dashed var(--text-light);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.photo-placeholder:hover {
    border-color: var(--primary-color);
    background: #EEF2FF;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.student-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.student-info p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.photo-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.footer i {
    color: #EF4444;
}

/* Add some fun newspaper animations */
.newspaper-spin {
    animation: newspaper-spin 10s linear infinite;
}

.newspaper-bounce {
    animation: newspaper-bounce var(--float-duration) ease-in-out infinite;
}

@keyframes newspaper-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes newspaper-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-1deg); }
    40% { transform: translateY(-10px) rotate(1deg); }
    60% { transform: translateY(-5px) rotate(-0.5deg); }
}

/* Schedule Cards with newspaper flair */
.day-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 1px solid #000;
    position: relative;
}

.day-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0,0,0,0.05) 5px,
        rgba(0,0,0,0.05) 6px
    );
    z-index: -1;
}

/* Activity cards with fun hover effects */
.activity-card {
    background: var(--newspaper-bg);
    border: 1px solid #000;
    transform: rotate(-0.5deg);
    transition: all 0.4s ease;
    position: relative;
    break-inside: avoid;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, transparent 40%, rgba(255,0,0,0.1) 50%, transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-card:hover {
    transform: scale(1.05) rotate(1deg);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-icon {
    background: linear-gradient(45deg, var(--headline-red), var(--headline-yellow), var(--headline-blue));
    animation: icon-pulse 3s ease-in-out infinite;
    border: 2px solid var(--text-black);
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Add newspaper-style bylines and datelines */
.day-card::after {
    content: '— School Gazette Staff';
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

.activity-card::after {
    content: 'Photo: School Archives';
    font-size: 0.75rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 1rem;
    display: block;
    text-align: right;
}

/* Fun floating elements */
.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float-around 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes float-around {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    25% { transform: translate(50px, -30px) rotate(90deg); opacity: 0.5; }
    50% { transform: translate(-20px, -60px) rotate(180deg); opacity: 0.3; }
    75% { transform: translate(30px, -30px) rotate(270deg); opacity: 0.4; }
}

/* Add some sparkle effects */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--headline-yellow);
    border-radius: 50%;
    animation: sparkle-effect 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle-effect {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Fix Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
}

/* Enhanced Page Background */
body {
    background-attachment: fixed;
    background-size: 400% 400%;
}

/* Make sections visible for testing */
.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.section.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.nav-link {
    cursor: pointer;
}

/* Remove hover effects that might interfere with visibility */
.day-card:hover,
.activity-card:hover,
.trend-card:hover,
.drama-card:hover {
    transform: translateY(-2px) scale(1.01);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-link {
        width: 200px;
        text-align: center;
    }

    .schedule-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
        column-count: 1;
    }

    .activity-card {
        transform: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    .header {
        padding: 1.5rem 1rem;
    }

    .main-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
