/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/* General Adjustments */
.screenshots-section {
    z-index: 1;
    position: relative;
}

.contact-us {
    z-index: 2;
    position: relative;
    margin-top: 50px; /* Adjust this value as needed */
}

/* Carousel Styles */
.custom-carousel {
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-wrapper {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: scroll-carousel 15s linear infinite; /* Animation for rotation */
}

.carousel-item {
    flex: 0 0 30%;
    position: relative;
    text-align: center;
}

.carousel-image {
    width: 100%;
    height: 300px; /* Adjusted height for visibility */
    object-fit: cover;
    object-position: top; /* Align images from the top */
    border-radius: 15px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f5f5f5; /* Light grey background */
    padding: 10px;
    font-size: 14px; /* Smaller font */
    color: #000; /* Black title */
    text-align: center;
    border-radius: 0 0 15px 15px; /* Rounded corners matching the image */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Keyframes for rotating carousel */
@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-120%);
    }
}

/* Category Chips */
.category-chips {
    margin: 20px auto;
    text-align: center;
}

.category-chip {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.category-chip:hover {
    background-color: #005177;
}

/* Categorized Posts */
.categorized-posts .category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    text-align: center; /* Center-aligned for better aesthetics */
}

/* Blog Container */
.custom-blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Container */
.custom-blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto; /* Adjust height dynamically */
    max-height: 450px; /* Ensure uniformity across all cards */
}

.custom-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-blog-card .featured-image img {
    width: 100%; /* Full width of the card */
    height: 250px; /* Fixed height for consistent display */
    object-fit: cover; /* Crop image proportionally */
    object-position: top; /* Align images from the top */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    display: block;
}

/* Prevent Stretching for Single Posts */
.custom-blog-container .custom-blog-card.blank-space {
    visibility: hidden; /* Hide blank spaces to maintain grid alignment */
    height: 0;
    width: 0;
    margin: 0;
}

/* Entry Header */
.entry-header {
    padding: 15px;
    text-align: center;
}

/* Entry Title */
.entry-title {
    font-size: 18px;
    margin: 10px 0;
}

.entry-title a {
    color: #0073aa;
    text-decoration: none;
}

.entry-title a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Entry Meta */
.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px; /* Reduced spacing */
}

/* Entry Content */
.entry-content {
    padding: 15px;
    font-size: 14px;
    color: #444;
    text-align: justify;
    height: 50px; /* Fixed height for consistent layout */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Thumbnail Styling */
.featured-image img,
.rounded-thumbnail {
    width: 100%; /* Full width of the card */
    max-height: 350px; /* Increased thumbnail size */
    object-fit: cover; /* Ensures images maintain aspect ratio and are cropped properly */
    object-position: top; /* Align images from the top */
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    display: block;
}

/* Press Release Section */
/* Press Release Page Styling */
.press-releases-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* Page Title Styling */
.page-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #0073aa;
}

/* Grid Layout */
.press-releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Press Release Card */
.press-release-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
}

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

/* Thumbnail Styling */
.press-release-thumbnail {
    margin-bottom: 15px;
}

.press-release-image {
    width: 100%;
    height: 200px; /* Uniform thumbnail height */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Content Section */
.press-release-content {
    padding: 15px;
    border-top: 1px solid #ddd;
}

.press-release-title {
    font-size: 20px;
    margin: 10px 0;
    color: #0073aa;
    font-weight: bold;
    transition: color 0.3s;
}

.press-release-title:hover {
    color: #005177;
    text-decoration: underline;
}

.press-release-excerpt {
    font-size: 14px;
    color: #444;
    margin: 10px 0;
    line-height: 1.5;
}

/* Action Buttons */
.press-release-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-read-more,
.btn-download-pdf,
.btn-share {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

/* Button Colors */
.btn-read-more {
    background-color: #28a745;
    color: #fff;
}

.btn-read-more:hover {
    background-color: #1e7e34;
}

.btn-download-pdf {
    background-color: #ffc107;
    color: #333;
}

.btn-download-pdf:hover {
    background-color: #e0a800;
}

.btn-share {
    background-color: #007bff;
    color: #fff;
}

.btn-share:hover {
    background-color: #0056b3;
}
