:root {
    --bg-color: #e7e7e7; /* Very dark grey, almost black */
    --text-color: #EAEAEA; /* Off-white for easier reading */
    --primary-color: #aabee1; /* A vibrant, professional blue */
    --Dprimary-color: #1e5ecc; /* A deeper more vibrant, professional blue */
    --secondary-text-color: #aeaeae; /* Lighter grey for secondary text */
    --border-color: #7e8fd4; /* Darker, more subtle borders */
    --card-bg-color: #45596f; /* A slightly lighter dark grey for cards */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --link-color: #ffc800; /* Links will use the primary blue */
    --link-hover-color: #edf0f3; /* A lighter blue for hover */
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 50px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 60px;
}

header h1 {
    color: var(--Dprimary-color);
    margin-bottom: 15px;
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
}

header p {
    color: var(--Dprimary-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

main {
    max-width: 1800px; /* Wider layout */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.training-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.training-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.description {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1rem;
}

.description a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.description a:hover {
    color: var(--link-hover-color);
}

video {
    border-radius: 8px;
    max-width: 100%;
    border: 1px solid var(--border-color);
}

.documents h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.documents ul {
    list-style: none;
    padding: 0;
}

.documents li {
    margin-bottom: 10px;
}

.documents a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.documents a:hover {
    color: var(--link-hover-color);
}

footer {
    text-align: center;
    margin-top: 80px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    .training-item {
        padding: 25px;
    }
    header h1 {
        font-size: 2.2rem;
    }
}
