.portfolio-section {
    padding: 50px; /* Adds more space before footer */
}

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

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 30px;
    background: #fff;     /* Ensure a background is set */
    padding: 15px; /* Some padding at the bottom */
}

.project-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Ensures the body takes up available space */
}

.project-card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em; /* Adjust line spacing */
}

.card-image img {
    object-fit: scale-down;
    height: 300px; /* Set a fixed height for uniform images */
    /* width: 100%; */
}


.bloglist-section {
    padding: 50px; /* Adds more space before footer */
}

/* Blog Card Hover Effect */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Blog Card Base Styles */
.blog-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 300px;        /* Adjust overall card height as needed */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 30px;
    background: #fff;     /* Ensure a background is set */
    padding: 15px; /* Some padding at the bottom */
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Ensures the body takes up available space */
}

/* Blog Card Title */
.blog-card-title {
    height: 30px; /* Adjust to desired height */
    overflow: hidden; /* Prevent content overflow */
    text-overflow: ellipsis; /* Add "..." if the text exceeds */
    white-space: nowrap; /* Keep the text in a single line */
}

/* Blog Card Date */
.blog-card-date {
    height: 30px; /* Adjust to desired height */
    line-height: 1.5em; /* Space between lines */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: gray; /* Optional for style */
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em; /* Adjust line spacing */
}




.reading-dashboard-section {
    padding: 50px; /* Adds more space before footer */
}


/* Reading Dashboard Card Styles */
.reading-card {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center children horizontally */
    height: 350px;        /* Adjust overall card height as needed */
    width: 250px;         /* Fixed card width */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 10px;
    background: #fff;     /* Ensure a background is set */
    padding-bottom: 10px; /* Some padding at the bottom */
}

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

/* Reading Card Image Container */
.reading-card-image {
    width: 150px;             
    height: 225px;            
    margin: 10px auto 0 auto;  /* 10px margin on top, auto left/right */
    overflow: hidden;         
    border-radius: 5px;       /* Optional: add a slight radius for style */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Light background to indicate placeholder */
}

/* Reading Card Image */
.reading-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* Maintain aspect ratio, show entire image */
    display: block;
}

.reading-card-body p {
    margin: 2px 0; /* Reduce extra space between paragraphs */
}

/* Reading Card Content */
.reading-card-body {
    width: 90%;
    padding: 0px;
    text-align: center;
    margin-bottom: 10px;  /* Gap between image and text */
}

/* Reading Card Title */
.reading-card-title {
    font-size: 16px;
    font-weight: bold;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reading Card Author */
.reading-card-author {
    font-size: 14px;
    color: gray;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reading Card Rating */
.reading-card-rating {
    font-size: 14px;
    font-weight: bold;
    color: #ff9800;
}

footer {
    background-color: #f8f9fa;
    color: #333;
}

footer a {
    color: inherit;
    text-decoration: none;
    /* margin: 0 10px; 
    display: inline-block; */
    transition: color 0.3s ease;
}
footer a:hover {
    color: #0077b5; 
}
footer i {
    font-size: 1.5rem; /* Adjust size as needed */
    margin: 0 10px; /* Space between icons */
    transition: transform 0.3s ease; /* Smooth scaling effect on hover */
}
footer i:hover {
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

.carousel-item {
    height: 500px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px; /* Adjust for smaller screens */
    }
}

.carousel-caption {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}
