/*==================================
  GLOBAL & TYPOGRAPHY
==================================*/
:root {
    --primary-color: #3182ce;
    --primary-dark-color: #2b6cb0;
    --text-primary-color: #2d3748;
    --text-secondary-color: #4a5568;
    --text-light-color: #a0aec0;
    --background-light-color: #f7fafc;
    --background-accent-color: #edf2f7;
    --white-color: #ffffff;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary-color);
    background-color: var(--background-light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* Meningkatkan padding agar lebih lega */
}

h1, h2, h3 {
    color: var(--text-primary-color);
    line-height: 1.2;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 3rem; text-align: center; }
h3 { font-size: 1.25rem; font-weight: 600; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

strong {
    font-weight: 600;
}

section {
    padding: 6rem 0;
}

/*==================================
  HEADER
==================================*/
.header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav a {
    color: var(--text-secondary-color);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-dark-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: var(--primary-dark-color);
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://via.placeholder.com/1920x800.png?text=Apartemen+Modern') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Untuk responsif */
}

.search-form input {
    width: 60%;
    max-width: 400px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
}

.search-form button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #388E3C;
}

/*==================================
  APARTMENTS & BLOG GRID
==================================*/
.apartments-grid, .blog-grid, .features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.apartment-card, .blog-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.apartment-card:hover, .blog-card:hover {
    transform: translateY(-8px); /* Efek hover yang lebih jelas */
    box-shadow: var(--shadow-medium);
}

.apartment-card img, .blog-card img {
    width: 100%;
    height: 220px; /* Tinggi yang lebih proporsional */
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.apartment-card p {
    font-size: 0.95rem; /* Ukuran font yang lebih baik */
    color: var(--text-secondary-color);
    margin: 0.5rem 0; /* Jarak yang konsisten */
}

.rating {
    color: #f6ad55;
    margin: 0.5rem 0;
}

.rating span {
    font-size: 0.8rem;
    color: var(--text-light-color);
    margin-left: 0.25rem;
}

.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary-color);
    margin-top: 1rem;
}

.price strong {
    color: #e53e3e; /* Warna merah untuk harga */
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light-color);
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-dark-color);
}

/*==================================
  FEATURES SECTION
==================================*/
.features-section {
    background-color: var(--background-accent-color);
    text-align: center;
}

.feature-item {
    padding: 1.5rem;
}

.feature-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/*==================================
  CALL TO ACTION (CTA)
==================================*/
.cta-section {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 3rem 0;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: var(--shadow-light);
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section p {
    font-size: 1.1rem;
}

.btn-cta {
    background-color: var(--white-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    margin-top: 2rem; /* Jarak yang lebih baik */
    display: inline-block;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

.btn-primary-ghost {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary-ghost:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.text-center {
    text-align: center;
}

/*==================================
  FOOTER
==================================*/
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem; /* Jarak yang lebih baik */
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white-color);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-light-color);
    margin-top: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-light-color);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white-color);
}

.social-icons a {
    color: var(--text-light-color);
    font-size: 1.5rem;
    margin-right: 1.25rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/*==================================
  RESPONSIVE
==================================*/
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .nav a {
        margin: 0 0.5rem;
    }
    .hero-section {
        padding: 5rem 0;
        height: auto;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .apartments-grid, .blog-grid, .features-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}