* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('https://i.gyazo.com/1f517fc1cbd14efc352c83f60eb42978.png'), auto;
}

a, button, input[type="submit"], .clickable {
    cursor: url('https://i.gyazo.com/2d0f2ccffc6f6e0d7060d515cc183f4a.png'), pointer !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c1810;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Navigation */
nav {
    background: linear-gradient(180deg, #f4d9c6 0%, #e8c4a8 50%, #d4a57a 100%);
    padding: 0.6rem 2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #c8975e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.site-title {
    display: none;
}

.nav-links {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: #6b3410;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    background: transparent;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #8b4513;
    transform: translateY(-2px);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.5);
    color: #8b4513;
}

/* Main Layout */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: linear-gradient(180deg, #f9ede0 0%, #f0dcc8 100%);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid #d4a57a;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid #d4a57a;
    border-radius: 5px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #c8975e;
}

.login-form button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(180deg, #d4a57a 0%, #c8975e 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 1rem;
}

.register-link a {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Social Media Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-link, .social-link img {
    cursor: url('https://i.gyazo.com/2d0f2ccffc6f6e0d7060d515cc183f4a.png'), pointer !important;
}

.social-link {
    display: block;
    transition: transform 0.2s, filter 0.2s;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    text-align: center;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
}

.social-icon {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.user-info {
    text-align: center;
}

.user-info h4 {
    color: #8b4513;
    margin-bottom: 1rem;
}

.user-info p {
    margin-bottom: 1rem;
    color: #6b3410;
}

.user-info button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(180deg, #d2691e 0%, #a0522d 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.discord-widget {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Main Content */
.content {
    background: linear-gradient(180deg, #f9ede0 0%, #f0dcc8 100%);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid #d4a57a;
    min-height: 600px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section for all pages */
.hero {
    text-align: center;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #6b3410;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* Consistent heading styles */
.content h2 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: left;
}

.content h3 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: left;
}

.content h4 {
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-align: left;
}

.small-text {
    font-size: 0.9rem;
    color: #8b4513;
}

.modal-text {
    text-align: center;
    color: #8b4513;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 165, 122, 0.3);
    padding-bottom: 1rem;
}

.modal-title {
    color: #8b4513;
    margin: 0;
    font-size: 1.5rem;
    word-wrap: break-word;
}

.center-title {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background: linear-gradient(180deg, #fff5eb 0%, #ffe8d1 100%);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8c4a8;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #8b4513;
}

.card p {
    color: #6b3410;
}

/* Ensure news content displays properly on all devices */
.news-content-preview {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    min-height: 50px !important;
    pointer-events: auto !important;
}

.news-content-preview img {
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important;
}

.news-content-preview iframe {
    max-width: 100% !important;
    display: block !important;
    border: none !important;
    z-index: 5 !important;
}

/* Ensure responsive video containers work properly */
.news-content-preview div[style*="padding-bottom: 56.25%"] {
    display: block !important;
    visibility: visible !important;
    overflow: hidden !important;
    z-index: 5 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
}

.news-content-preview a {
    display: inline-block !important;
    pointer-events: auto !important;
}

#newsContent {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: 100px !important;
}

.news-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px !important;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: 0;
    }

    .discord-widget {
        height: 400px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Improved news display on mobile */
    .content {
        padding: 0.8rem;
        overflow: visible !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .center-title {
        font-size: 1.5rem;
    }
    
    .card-grid {
        overflow: visible !important;
    }
    
    .news-content-preview {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-height: none !important; /* Remove height restriction on mobile */
        overflow: visible !important;
        z-index: 5 !important;
        position: relative !important;
    }

    #newsContent {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        overflow: visible !important;
        z-index: 5 !important;
        position: relative !important;
    }

    /* Ensure news cards are visible on mobile */
    .news-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1rem !important;
        overflow: visible !important;
        z-index: 5 !important;
        position: relative !important;
    }
    
    /* Improve YouTube video display on mobile */
    .news-content-preview iframe,
    .news-content-preview img {
        max-width: 100% !important;
        height: auto !important;
        display: inline-block !important;
    }
    
    /* Ensure iframe containers display properly on mobile */
    .news-content-preview div[style*="padding-bottom: 56.25%"] {
        margin: 0 auto 10px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        background-color: #000 !important; /* Black background for video container */
        border-radius: 8px !important;
        overflow: hidden !important;
        border: 1px solid #d4a57a !important;
    }
    
    /* Ensure iframes are visible and clickable on mobile */
    .news-content-preview iframe {
        z-index: 10 !important;
        position: absolute !important;
        border: none !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Fix for mobile links */
    .news-content-preview a {
        display: inline-block !important;
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }
    
    /* Fix for YouTube thumbnails */
    .news-content-preview a img {
        border: 2px solid #d4a57a !important;
        margin: 5px auto !important;
    }

    /* Ensure buttons are clickable */
    .view-full-btn {
        position: relative !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }
}