/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* 70% of viewport height */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(50%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 0 1rem;
    color: #fff;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
}

/* --- Topics Section Titles --- */
.topics-section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Cards Grid --- */
.grid-cards {
    display: grid;
	max-width: 90vw;
	margin-left: auto;
    margin-right: auto;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* --- Individual Cards --- */
.card {
    border: 1px solid #ddd;
	text-align: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    background: white;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card a {
    text-decoration: none;
	color: black;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .topics-section-title {
        font-size: 1.3rem;
    }
}


/* --- Responsive Hero --- */
@media (max-width: 767px) {
	.hero-section {
		height: 50vh;
	}
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* --- Welcome Section --- */
.welcome-section {
    padding: 60px 20px;
}

.welcome-container {
    display: flex;
    flex-direction: column; /* Mobile default: image first, text below */
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.welcome-text {
    text-align: left;
}

.welcome-text p {
    font-size: 1rem;
    line-height: 1.2;
    color: #333;
}

/* --- Desktop / Large Screens --- */
@media (min-width: 1024px) {
    .welcome-container {
        flex-direction: row; /* Side by side */
        align-items: center;
        gap: 3rem;
    }

    .welcome-image, .welcome-text {
        flex: 1; /* Equal width */
    }

    .welcome-text {
        text-align: left;
    }
	
	.welcome-text p {
		font-size: 1.2rem;
		color: #333;
	}
}

