/* Custom Homepage Styles */
.custom-homepage {
    font-family: Arial, sans-serif;
    color: #333; /* Dark gray for text */
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Replace this URL with a relevant background image of your choice */
    background: url('hero-bg.webp') no-repeat center center/cover;
    padding: 150px 20px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Dark overlay for better text visibility */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    background: #28a745; /* Sky blue */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none !important;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: #218838; /* Lighter sky blue on hover */
	color: #fff;
}

/* Categories Section */
.categories-section {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
}

.categories-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-card {
    flex: 1 1 calc(40% - 40px); /* 2 cards across with a gap */
    max-width: calc(40% - 40px);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #D2042D; /* Cherry color for the icon */
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.category-link {
    color: #28a745; /* Sky blue */
    text-decoration: none !important;
    font-weight: bold;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #218838; /* Lighter on hover */
}

/* Responsive for Categories */
@media (max-width: 1024px) {
    .category-card {
        flex: 1 1 calc(80% - 40px); /* Single column on smaller screens */
        max-width: calc(80% - 40px);
    }
}

@media (max-width: 600px) {
    .category-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Text Block Section */
.text-block-section {
    padding: 50px 20px;
    text-align: center;
    background: #fff;
}

.text-block-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-block-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.text-block-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 50px 20px;
    background: #f9f9f9;
}

.recent-posts-section h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

.category-latest-articles {
    margin-bottom: 50px;
    text-align: left;
}

.category-latest-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: normal !important;
}

.posts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-item {
    flex: 0 0 calc(25% - 20px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 20px;
}

.post-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-item h4 {
    margin: 10px 0 0 0;
    font-weight: normal !important;
}

.post-item h4 a {
    color: #333;
    text-decoration: none !important;
}

.post-item h4 a:hover {
    color: #218838; /* match cherry color */
}

/* Responsive for Posts Grid */
@media (max-width: 1024px) {
    .post-item {
        flex: 0 0 calc(50% - 20px); 
    }
}

@media (max-width: 600px) {
    .post-item {
        flex: 0 0 100%;
    }
}
