a<?php 
include 'koneksi.php';
session_start();
if (!isset($_SESSION['login_admin'])) {
    header('Location: dashboard.php');
    exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head><link rel="icon" href="upload/bn2.png" type="image/png">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profil admin | Smk Budiniah 2</title>
    <style>
        body{
            font-family:Arial, Helvetica, sans-serif;
            background: #fff;
            color: #333;
            margin: 0;
            padding: 0
        }
        .halaman-profil-container{
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .halaman-profil{
            display: grid;
            grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
            gap: 20px;
        }
        .card{
            background: #f9fcff;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            padding:20px;
            text-align: center;
        }
        .card h3{
            margin-bottom: 15px;
            font-size:20px;
            text-transform: capitalize;
            font-weight: bold;
        }
        .card p{
            margin-bottom: 15px;
            font-size: 16px;
            text-transform: capitalize;
        }
        .card a{
            display: inline-block;
            background: #0037fd;
            color: #fff;
            text-transform: capitalize;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }
        .card a:hover{
            background-color: #0026b3;
        }
        @media (max-width: 768px){
            .halaman-profil-container{
                padding: 20px 5% 0 15%;
            }
            .halaman-profil{
                grid-template-columns: 1fr;
            }
            .halaman-profil .card{
                padding: 15px;
            }
            .halaman-profil .card h3{
                font-size: 18px;
            }
            .halaman-profil .card p{
                font-size: 14px;
            }
            .halaman-profil .card a{
                padding: 8px 15px;
                font-size: 14px;
            }
        }
    </style>
</head>
<body>
    <?php include 'navbar_admin.php'; ?>
    <div class="halaman-profil-container">
    <div class="halaman-profil">
        <div class="card">
            <h3>Edit Visi & Misi</h3>
            <p>edit isi kalimat yang ada di visi & misi</p>
            <a href="edit_visimisi.php">edit</a>
        </div>
        <div class="card">
            <h3>edit struktur organisasi</h3>
            <p>merubah gambar/foto struktur organisasi</p>
            <a href="edit_struktur.php">edit</a>
        </div>
        <div class="card">
            <h3>edit kata kata kepala sekolah</h3>
            <p>merubah gambar/foto dan kata kata kepala sekolah</p></p>
            <a href="edit_detail_kepsek.php">edit</a>
        </div>
    </div>
</div>
</body>
</html>
