/* Projects Section */
.project {
    background: #121829;
    padding: 50px 20px;
    text-align: center; /* Centers the heading and paragraph */
}

.project-title {
    color: white;
    font-size: 36px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: "";
    width: 50px;
    height: 3px;
    background: red;
    display: block;
    margin: 8px auto 20px;
}

.project p {
    color: #bbb;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
}

/* Project Cards */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 24px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    align-items: stretch; /* Ensures equal height */
}

.projects-card {
    background: #1E1E2F;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all cards the same height */
}

.projects-card:hover {
    transform: translateY(-5px);
}

/* Project Image */
.projects-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Project Info */
.projects-info {
    padding: 20px;
    color: #fff;
    text-align: left;
    flex-grow: 1; /* Ensures text stretches inside the card */
}

/* Improve Text Readability */
.projects-name {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

/* Ensure Price is on Its Own Line */
.price {
    font-size: 18px !important;
    font-weight: bold;
    color: red !important;
    margin-bottom: 5px;
}

/* Projects Meta (Fix Alignment) */
.projects-meta {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 5px; /* Reduce space below each meta line */
}

/* Make Meta Titles Bold */
.projects-meta span {
    font-weight: bold;
    color: #fff;
}

/* Ensure Location and Completion Stay White */
.location, .completion {
    color: white !important;
}

/* Divider Before Description */
.divider {
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px auto;
    border: none;
}

/* Project Description */
.description {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Make "Description:" Text Bold */
.description span {
    font-weight: bold;
    color: white;
}

/* Centered Learn More Button */
.learn-more-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 12px 28px;
    background: #ff6600;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.learn-more-btn:hover {
    background: #ff4500;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* One column on small screens */
    }
    
    .projects-img {
        height: 180px; /* Smaller image on mobile */
    }
}

/* Ensure the map container is properly sized */
#map {
    height: 500px;  /* Adjust the height as needed */
    width: 100%;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Info window styling */
.gm-style .gm-style-iw {
    font-family: Arial, sans-serif;
    padding: 10px;
    font-size: 14px;
    color: #333;
}

/* Responsive Map for Mobile */
@media (max-width: 768px) {
    #map {
        height: 350px; /* Smaller height for mobile screens */
    }
}
