<?php
$css = file_get_contents('assets/css/custom.css');

$search = <<<CSS
.announcement-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}
CSS;

$replace = <<<CSS
.announcement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
}
CSS;

$newCss = str_replace($search, $replace, $css);
if ($newCss !== $css) {
    file_put_contents('assets/css/custom.css', $newCss);
    echo "CSS modified.\n";
} else {
    echo "CSS not found.\n";
}

