:root {
    --primary-color: #4CAF50; /* PGN:U Green */
    --secondary-color: #FFC107; /* Accent Yellow */
    --background-color: #1a1a1a; /* Dark Gray */
    --text-color: #e0e0e0; /* Light Gray */
    --card-background: #2c2c2c; /* Slightly Lighter Gray */
    --header-footer-bg: #222;
    --nav-link-hover: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex-grow: 1; /* Makes the container take up available space */
}

header {
    background-color: var(--header-footer-bg);
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--primary-color);
    position: relative; /* Needed for absolute positioning of the logo */
}

.header-logo {
    position: absolute;
    top: 15px;
    left: 20px;
    width: 60px; /* Adjust size as needed */
    height: 60px;
    border-radius: 50%; /* Optional: if the logo is round */
    box-shadow: 0 0 10px rgba(var(--primary-color), 0.3); /* Optional shadow */
}

.header-content {
    /* Wrapper for text to allow padding without affecting logo */
    padding-left: 90px; /* Adjust based on logo size + desired spacing */
    padding-right: 90px; /* Keep it centered */
    display: inline-block; /* Keeps text alignment working */
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-family: 'Roboto Mono', monospace;
    margin-top: 0.3rem;
}

nav ul {
    /* Keep base list reset if needed globally, otherwise remove */
    /* list-style: none; */
    /* padding: 0; */
    /* margin: 2rem 0; */
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: center; */
    /* gap: 1rem; */
}

nav ul li {
    /* Remove if only .hub-nav styles are needed */
}

nav ul li a {
    /* Remove if only .hub-nav styles are needed */
    /* display: block; */
    /* background-color: var(--card-background); */
    /* color: var(--text-color); */
    /* text-decoration: none; */
    /* padding: 0.8rem 1.5rem; */
    /* border-radius: var(--border-radius); */
    /* box-shadow: var(--box-shadow); */
    /* transition: transform var(--transition-speed), background-color var(--transition-speed); */
    /* font-weight: 400; */
    /* text-align: center; */
}

nav ul li a:hover,
nav ul li a:focus {
    /* Remove if only .hub-nav styles are needed */
    /* background-color: var(--nav-link-hover); */
    /* color: var(--primary-color); */
    /* transform: translateY(-3px); */
    /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); */
}

/* Add styles for the index page navigation */
.hub-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Increased gap */
    margin: 3rem 0; /* More margin */
    padding: 0;
    list-style: none;
}

.hub-nav ul li a {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    background-color: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    padding: 1.2rem 1.5rem; /* Larger padding */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
    font-weight: 500; /* Slightly bolder */
    font-size: 1.1rem; /* Slightly larger font */
    text-align: left; /* Align text left */
}

/* Simple pseudo-element icon */
.hub-nav ul li a::before {
    content: '→'; /* Placeholder icon */
    margin-right: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
    line-height: 1;
    transition: color var(--transition-speed);
}

.hub-nav ul li a:hover,
.hub-nav ul li a:focus {
    background-color: var(--nav-link-hover);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.02); /* Slightly lift and scale */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.45); /* Enhanced shadow */
}

.hub-nav ul li a:hover::before {
    color: var(--primary-color);
}

/* Styles specific to content pages */
.content-page {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.content-page h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    font-family: 'Roboto Mono', monospace;
}

.content-page p {
    margin-bottom: 1rem;
    color: #b0b0b0; /* Slightly lighter text for paragraphs */
}

.content-page code {
    background-color: #333;
    color: var(--secondary-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    display: inline-block; /* Or block for separate lines */
    margin: 0.5rem 0;
}

.content-page ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Style for images within content pages */
.content-image {
    display: block; /* Allows margin auto centering */
    max-width: 80%; /* Reduce max width slightly */
    height: auto;
    margin: 2rem auto; /* Center horizontally, add vertical margin */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Slightly adjusted shadow */
    border: 1px solid var(--nav-link-hover); /* Subtle border */
}

/* Back link style */
.back-link {
    display: inline-block;
    /* margin-top: 2rem; */ /* Adjusted spacing below */
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.back-link:hover {
    color: var(--primary-color);
}

/* Page Navigation Styles */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem; /* Spacing above navigation */
    padding-top: 1.5rem;
    border-top: 1px solid var(--nav-link-hover); /* Separator line */
}

.page-nav-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed), opacity var(--transition-speed);
    cursor: pointer;
}

.page-nav-button:hover {
    background-color: #3e8e41; /* Darker green */
}

.page-nav-button.disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
    pointer-events: none; /* Disable clicks */
    opacity: 0.7;
}

.page-number {
    font-family: 'Roboto Mono', monospace;
    color: var(--secondary-color);
    font-size: 1rem;
}

.page-nav-left,
.page-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* Spacing between back-link and buttons */
}

.page-nav-left {
    justify-content: flex-start;
}

.page-nav-right {
    justify-content: flex-end;
}

footer {
    background-color: var(--header-footer-bg);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; /* Pushes footer to the bottom */
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* Animations (can reuse or add new ones) */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    animation: fadeIn 1s ease forwards;
}


@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .container {
        width: 95%;
        padding: 1.5rem 0.5rem;
    }
    nav ul {
        gap: 0.8rem;
    }
    nav ul li a {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    .content-page h2 {
        font-size: 1.6rem;
    }
    .hub-nav ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    .hub-nav ul li a {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    nav ul li a {
        width: auto; /* Ensure links take full width */
    }
    .hub-nav ul {
        grid-template-columns: 1fr; /* Stack vertically */
    }
}

/* Warning Note Style */
.warning-note {
    background-color: rgba(255, 80, 80, 0.3);
    color: #ffdddd;
    /* padding: 0.15em 0.4em; */ /* Adjusted padding */
    padding: 0.8em 1em; /* More appropriate padding for a block */
    border-radius: 5px; /* Slightly larger radius */
    font-weight: 600; /* Slightly less bold might look better as a block */
    /* display: inline; */
    display: block; /* Make it a block element */
    /* white-space: nowrap; */ /* Allow wrapping */
    margin-top: 1rem; /* Add vertical spacing */
    margin-bottom: 1rem;
    font-size: 0.95em; /* Slightly smaller font size */
    line-height: 1.5; /* Improve readability for wrapped text */
}

/* Remove duplicate/incorrect warning-note styles if they exist */
/* These selectors look like they were added incorrectly before */
.warning-note h3,
.warning-note ul,
.warning-note li,
.warning-note p,
.warning-note strong {
    /* These styles likely don't belong nested like this based on HTML */
    /* Removing them unless specific nesting is intended */
}

.content-page ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
} 