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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f5f5f5;           
    line-height: 1.6;
    min-height: 100vh;
}

.screen-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    padding: 30px;
    gap: 30px;
}

.sidebar-column {
    width: 350px; 
    display: flex;
    flex-direction: column;
    flex-shrink: 0; 
}

.left-sidebar:empty {
    /* Balance placeholder utility container column */
}

.right-sidebar {
    justify-content: flex-start;
    gap: 20px;
}

/* FIX: Changed to column flow and removed absolute vertical centering align-items */
.center-column {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.main-card {
    text-align: center;
    background: #2a2a2a; 
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); 
    width: 100%;
    margin-bottom: 30px;
}

.server-logo {
    display: block;
    max-width: 450px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ff9900;
    font-weight: 700;
}

#overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 20px;
}

button {
    padding: 12px 30px;
    font-size: 18px;
    cursor: pointer;
    background: #ff9900;
    color: #111;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background: #e08800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

button:active {
    transform: translateY(0);
}

#overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: #111; 
    color: white;
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    z-index: 9999;
}

iframe {
    border-radius: 8px;
    border: none;
    max-width: 100%;
}

.ip-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    width: 100%;             
    max-width: 350px;
    margin: 0;
}

#serverIp {
    font-family: monospace;
    font-size: 1.1rem;
    color: #ff9900;
}

#copyBtn {
    padding: 6px 15px;
    font-size: 14px;
}

.modpack-promo {
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modpack-promo h3 {
    color: #ff9900;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.modpack-promo p {
    color: #cccccc;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.promo-btn {
    display: block;
    background: #ff9900;
    color: #111;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}

.promo-btn:hover {
    background: #e08800;
    transform: translateY(-1px);
}

/* Top Navbar Styles */
.top-navbar {
    background: #2a2a2a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #ff9900;
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a, .nav-ip-btn {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover, .nav-ip-btn:hover {
    color: #ff9900;
    background-color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

/* --- FEATURES SECTION OVERHAUL --- */
.features-section {
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.features-title {
    color: #ff9900;
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left; /* Aligns left to match content grid flow */
}

/* FIX: Forced vertical stacked layout list style */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.feature-card {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 22px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #ff9900;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: #ffffff;
    margin: 0 0 8px 0;
    font-size: 18px;
    font-family: 'Segoe UI', sans-serif;
}

.feature-card p {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Mobile responsive layout optimizations combined */
@media (max-width: 1100px) {
    .screen-container {
        flex-direction: column; 
        align-items: center;
        justify-content: flex-start;
        padding: 15px; 
        gap: 20px;
    }
    
    .center-column {
        width: 100%;
        max-width: 500px; 
    }

    .main-card {
        padding: 25px 20px; 
        width: 100%;
    }

    .sidebar-column {
        width: 100% !important;     
        max-width: 500px !important; 
        flex-shrink: 1 !important;   
    }
    
    iframe, 
    .ip-container, 
    .modpack-promo {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .left-sidebar:empty {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        gap: 10px;
        font-size: 14px;
    }
}
/* --- MODERN MULTI-COLUMN FOOTER --- */

.site-footer {
    background-color: #141414; /* Slightly darker background to separate from main layout body */
    border-top: 1px solid #333333;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* Brand Section Styles */
.footer-brand-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    color: #ff9900;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-socials a {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.footer-socials a:hover {
    transform: scale(1.15);
}

.footer-copyright {
    color: #666666;
    font-size: 13px;
}

/* Links Right Columns Layout Grid */
.footer-links-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ff9900;
}

/* Legal Bottom Banner Text Box */
.footer-disclaimer {
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #222222;
    color: #555555;
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Responsive Wrap Constraints */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-links-grid {
        justify-content: center;
        gap: 40px;
    }
    .footer-socials {
        justify-content: center;
    }
}
/* --- LEADERSHIP STYLES --- */
.leadership-section {
    width: 100%;
    margin-top: 40px;
    box-sizing: border-box;
}

.leadership-title {
    color: #ff9900;
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.leadership-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.leader-card {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 260px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    box-sizing: border-box;
}

.leader-avatar {
    font-size: 32px;
    margin-bottom: 10px;
}

.leader-card h3 {
    color: #ffffff;
    margin: 0;
    font-size: 18px;
}

.leader-title-tag {
    color: #ff9900;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.leader-card p {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}