:root {
    --primary-bg-color: #0A0B2C;
    --secondary-bg-color: #1A1C3E;
    --text-color: #E0E0E0;
    --link-color: #BBBBBB;
    --hover-color: #FFFFFF;
    --highlight-color: #2F90FF;
    --card-bg-color: #1A1C3E;
    --border-color: #444;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-bg-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 25px;
}

.navbar nav ul li a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.3s ease;
    
}

.navbar nav ul li a:hover {
    color: var(--hover-color);
}

/* Sub-navbar */
.sub-navbar {
    background-color: var(--secondary-bg-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sub-navbar .container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.sub-navbar .container ul li {
    margin-right: 20px;
}

.sub-navbar .container ul li a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.8em;
    transition: color 0.3s ease;
}

.sub-navbar .container ul li a:hover {
    color: var(--hover-color);
}

/* Main Content */
.content {
    padding: 40px 0;
}

.welcome-message {
    font-size: 1.8em;
    font-weight: 600;
    text-align: left;
    margin-bottom: 40px;
    color: var(--hover-color);
}

.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* New CSS for the hyperlink and card behavior */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the entire anchor tag a block element */
    transition: transform 0.3s ease;
}

.card-link:hover {
    transform: translateY(-5px); /* Simple lift effect on hover */
}

.grid-item {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures all cards are the same height */
    box-sizing: border-box; /* Includes padding in height calculation */
}

.item-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--hover-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.item-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    flex-grow: 1;
}

.item-card img {
    width: 280px;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-card p {
    font-size: 0.95em;
    color: var(--text-color);
    margin: 0;
    flex-grow: 1;
}

/* New CSS for the CTA button */
.cta-button {
    background-color: var(--highlight-color);
    color: var(--hover-color);
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px; /* Space between content and button */
    display: inline-block; /* Allows padding and keeps it on its own line */
    align-self: flex-start; /* Aligns the button to the left within the flex column */
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1a73e8; /* A slightly darker blue for hover */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .grid-section {
        grid-template-columns: 1fr;
    }

    .item-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .item-card img {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin-bottom: 15px;
    }

    .cta-button {
        align-self: center; /* Center the button on smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .navbar nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar nav ul li {
        margin: 0 10px 10px 10px;
    }

    .sub-navbar .container ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sub-navbar .container ul li {
        margin: 0 10px 5px 10px;
    }

    .welcome-message {
        font-size: 1.5em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar .logo img {
        height: 70px;
    }

    .navbar nav ul li a {
        font-size: 0.8em;
    }

    .sub-navbar .container ul li a {
        font-size: 0.7em;
    }

    .welcome-message {
        font-size: 1.2em;
    }

    .grid-item {
        padding: 15px;
    }

    .item-title {
        font-size: 1.2em;
    }

    .item-card p {
        font-size: 0.85em;
    }

    .cta-button {
        font-size: 0.9em;
    }
}