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

body, html {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding-top: 30px;
    padding-bottom:10px;
    background-color: #222;
    color: #fff;
}

header h1 {
    font-size: 3rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
    margin-top: 20px;
}

/* Styling for each clickable resource card */
.resource-card
{
    display: block; /* Ensure it's a block-level element */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none; /* Remove the default underline */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resources-container a
{
        text-decoration: none;
}

.resources-container a:hover
{
	text-decoration: none;
	text-underline: none;
}

/* Hover effect on resource card */
.resource-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Styling for the resource image */
.resource-image {
    width: 100%;
    height: 200px; /* Reduced image height */
    overflow: hidden;
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; /* Adjusted to avoid vertical offset */
    left: 0; /* Adjusted to avoid horizontal offset */
}

/* Styling for the text information in each resource card */
.resource-info {
    padding: 20px; /* Added padding around the text */
    background-color: #fff;
    color: #000; /* Set text color to black */
}

/* Ensure headings and paragraph text are styled correctly */
.resource-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #000; /* Set heading color to black */
}

.resource-info p {
    font-size: 1rem;
    color: #000; /* Set paragraph color to black */
}

/* Remove default hyperlink styles (blue text) */
.resource-card a {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color from parent (black) */
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
    .resource-card {
        flex-direction: column;
        text-align: center;
    }

    .resource-image {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .resource-image img {
        top: 0;
        left: 0;
        margin-bottom: 15px;
    }

    .resource-info h2 {
        font-size: 1.5rem;
    }

    .resource-info p {
        font-size: 1.1rem;
    }
}

/* Text container */
.text-container-long {
    flex: 2;
    min-width: 300px;
    max-width: 1365px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    gap: 20px;
    padding: 30px;
    margin-top: 20px;
    margin-left: 30px;
}

.text-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.text-container p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.text-container h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

.text-container ul {
    list-style-type: square;
    margin-left: 20px;
}

.comment-container {
margin-top:20px;
}

.comment-image {
  border: 1px solid #ccc;
}
