body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content on the left */
.medicine-content {
    flex: 1;
    padding-right: 20px;
}

.medicine-content h1 {
    font-size: 28px;
    color: #333;
    
}

.medicine-content h2 {
    font-size: 20px;
    color: #444;
    margin-top: 10px;
}

.medicine-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Image on the right */
.medicine-image {
    flex: 1;
    text-align: center;
}

.medicine-image img {
    max-width: 350px;  /* Adjusted size */
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Back Button */
.back-button {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 200px;
}

.back-button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: left;
    }
    
    .medicine-content {
        padding-right: 0;
    }
    
    .medicine-image {
        text-align: center;
        margin-top: 20px;
    }
    
    .medicine-image img {
        max-width: 200px; /* Reduce image size on mobile */
    }
}
