<?php
include __DIR__ . "/deepanshu/conn.php";

$title = "CV111 সম্পর্কে";
$content = "";

$result = $conn->query("SELECT setting_key, setting_value FROM site_settings WHERE setting_key IN ('about_title','about_content')");
while ($row = $result->fetch_assoc()) {
    if ($row['setting_key'] === 'about_title') $title = $row['setting_value'];
    if ($row['setting_key'] === 'about_content') $content = $row['setting_value'];
}
?>
<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8">
<title><?= htmlspecialchars($title) ?> - CV111</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
    body { background: #F6F6F6; margin: 0; font-family: 'Segoe UI', sans-serif; color: #333; }
    #header { background: #F5CC2C; padding: 18px; text-align: center; font-weight: 700; font-size: 17px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
    .content-box { max-width: 600px; margin: 20px auto; background: #ffffff; border: 1px solid #e6e8e8; border-radius: 12px; padding: 24px; line-height: 1.8; font-size: 14.5px; white-space: pre-wrap; }
    .back-link { display: block; text-align: center; margin: 16px; color: #333; text-decoration: none; font-size: 13px; }
</style>
</head>
<body>
<div id="header"><?= htmlspecialchars($title) ?></div>
<div class="content-box"><?= nl2br(htmlspecialchars($content)) ?></div>
<a href="/" class="back-link">← Home-এ ফিরে যাও</a>
</body>
</html>
