/* --- Styles for Temples, Gardens, Cuisine pages --- */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--accent-pink);
    padding-bottom: 20px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto 0;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between content items */
}

.content-item {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* This creates the alternating layout */
.content-item:nth-child(even) {
    flex-direction: row-reverse;
}

.content-item img {
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-item .text-content {
    flex: 1; /* Allows the text to take up remaining space */
}

.content-item h2 {
    color: var(--accent-green);
    margin-top: 0;
}

/* --- Responsive Design --- */
/* Tablets (1024px and below) */
@media (max-width: 1024px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .content-item img {
        width: 50%;
    }

    .content-item {
        gap: 20px;
    }
}

/* Tablets to Mobile (768px and below) */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .content-item {
        flex-direction: column !important;
        gap: 20px;
        align-items: stretch;
    }

    .content-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .content-item .text-content {
        padding: 0;
    }

    .content-item h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .content-item p {
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .page-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid var(--accent-pink);
    }

    .page-header h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .content-item {
        gap: 15px;
    }

    .content-item img {
        height: 200px;
    }

    .content-item .text-content {
        padding: 0;
    }

    .content-item h2 {
        font-size: 1.1rem;
        margin: 0 0 8px 0;
    }

    .content-item p {
        font-size: 0.85rem;
        margin: 0;
    }
}