:root {
    --background-mid: #C1D2DA;
    --background-light: #F3F3F3;
}

html {
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background: var(--background-mid);
}

main {
    flex: 1;

}

/* --- Top Navigation --- */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--background-mid);
    font-weight: bold;
}

.company a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
}

.top-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.top-nav li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.top-nav li a.active,
.top-nav li a:hover {
    cursor: pointer;
}

.top-nav .right a {
    padding: 0.5rem 1rem;
    color: #333;
    border: 1px solid #0d0d0d;
    border-radius: 6px;
    font-weight: bold;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
    background: var(--background-mid);
    max-width: 1200px;
    margin: auto;
    gap: 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: black;
    color: #fff;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 2rem;
}


.hero-content {
    flex: 0 0 40%;
    /* left column */
}

.hero-image {
    flex: 0 0 60%;
    /* right column */
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    /* optional */
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    font-size: 1.4rem;
    text-align: left;
    font-weight: bold;
}

.stat .label {
    font-size: 0.9rem;
    color: #666;
}

/* --- Founder Section --- */
.founder {
    padding: 2rem;
    background: #0d0d0d;
    color: #fff;
    text-align: center;
    margin-top: auto;
}

.founder .name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.founder .role {
    font-weight: normal;
    font-size: 1rem;
    color: #ccc;
}

.founder p {
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- About --- */
.about {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: black;
}

.about p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #444;
}

/* --- Properties --- */
.properties {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2rem;
    text-align: center;
}

.properties h1 {
    font-size: 2rem;
    color: black;
    margin-bottom: 0.5rem;
}

.properties .subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.property-grid-a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

.property-card img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    margin: 0.5rem 1rem;
}

.property-card .details {
    font-size: 0.9rem;
    color: #666;
    margin: 0 1rem 0.5rem;
}

.property-card a {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin: 0 1rem 1rem;
    text-decoration: none;
}

.property-card a:hover {
    color: black;
}

.card-link {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin: 0 1rem 1rem;
    text-decoration: none;
}

.property-name {
    margin: 0 1rem 0.5rem;
}

.news-desc {
    max-width: 100%;
    max-height: 3.4em;
    margin-left: 1em;
    margin-right: 1em;
    margin-bottom: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limits the text to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}