/* Import Fira Code font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

/* Hero Section Styling */
.blogs-hero {
    font-family: 'Fira Code', monospace;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 300px;
    
}


.blogs-hero-content {
    z-index: 1;
    text-shadow: 0 4px 10px rgb(0, 0, 0);
    
}

.blogs-hero h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #3a3838;
}

.blogs-hero p {
    font-size: 1.2em;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Blog Section Styling */
#blogs-section {
    font-family: 'Fira Code', monospace;
    color: #3a3838;
    padding: 0 5%; /* Add 5% padding on each side */
}

#blogs-section h1 {
    font-size: 2em;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #3a3838;
}

.blogs-gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive columns */
    width: 100%;
    /* max-width: 1200px;     Optional: Limits max width on larger screens */
    margin: 0 auto;                  /* Centers the grid within the container */
    padding: 10px;                   /* Adds padding around the grid */
    box-sizing: border-box;
}


/* Responsive layout for larger screens */
@media (min-width: 768px) {
    .blogs-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .blogs-gallery-grid {
        grid-template-columns: repeat(3, 30%);
        gap: 20px;
    }
}

/* Individual Blog Item */
.blogs-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;          /* Allows the image to scale proportionally */
    object-fit: contain;   /* Ensures the entire image is visible without cropping */
}

.blogs-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blogs-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.blogs-item h2 {
    font-size: 1.5em;
    color: #005f73;
    margin: 10px 0;
}

.blogs-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
    padding: 0 10px 10px;
}

/* Read More Button Styling */
.blogs-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    color: #fff;
    background-color: #007acc;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.blogs-read-more:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Special effects for text content links */
.blogs-text-content a {
    text-decoration: none;
}

.blogs-text-content > h2 {
    text-decoration: none;
}

.blogs-text-content a:hover {
    font-weight: bold;
    text-decoration: underline;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .blogs-item {
        flex-direction: column;
    }

    .blogs-profile-picture {
        order: -1;
        margin-bottom: 20px;
        border-radius: 50%;  /* Fully rounded for a circular profile picture */
    }

    .blogs-text-content {
        padding-right: 0;
    }
}

/* Profile Picture Styling */
.blogs-profile-picture {
    flex: 0 0 200px;
}

.blogs-profile-picture img {
    width: 100%;           /* Ensures the image fills the container’s width */
    height: auto;          /* Maintains the aspect ratio */
    max-height: 400px;     /* Optional: Set a maximum height to control scaling */
    object-fit: contain;   /* Keeps the whole image within bounds */
    border-radius: 10px;
}

#blog_area {            
    
    align-items: center;  
    padding: 20px 0;   
    
}

/*
Experiment: 
dynamically assigning a class in blog_renderer.js loaded element.
The class is defined in the posts.json, once defined, it can be used here
The class is directly applied to the img element, use !important to override.
*/
