:root {
    --primary-color: #7d3108;
    --secondary-color: #e6b41e;
    --accent-color: #976502;
    --bg-color: #fdfbf7;
    --card-bg: #ffffff;
    --text-color: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.profile {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 20px 5%;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.profile>img{
    width: 80px;
    height: 80px;
    
    
}

@media (max-width:800px) {

   .profile>img{
    width: 60px;
    height: 60px; }
    
}

header h1 {
    margin: 40px auto;
    text-align: center;
    font-size: clamp(1rem, 4vw, 3rem);
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding: 10px 20px;
    width: fit-content;
}

.container {
    width: 90%;
    margin: 40px auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Article Section */
article {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

article h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
}

figure {
    margin: 15px 0;
    text-align: center;
    background-color: transparent;
    padding: 0;
}

figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

figcaption {
    font-style: normal;
    color: #666;
    margin-top: 8px;
    font-size: 0.85rem;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
footer>p{
    border: 1px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
}

/* Admin Form Styles */
.admin-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-color); }
input[type="text"], textarea, input[type="file"] { 
    width: 100%; 
    padding: 12px; 
    box-sizing: border-box; 
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}
input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}
button { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 6px;
    cursor: pointer; 
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}
button:hover { background-color: var(--accent-color); }