html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-title {
    text-align: center;
}

.site-title img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

body{

    font-family: "Figtree", sans-serif,
    "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin:0;
    background:white;
}

header{
    background:#111;
    color:white;
    padding:20px;
}

header h1{
    margin:0;
}



/* NAVIGATION BAR */
.navbar{
    background:black;
    text-align:center;
    padding:10px 0;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 500;
}

.navbar a{
    color:white;
    text-decoration:none;
    margin:0 20px;
    font-size:18px;
    position:relative;
    padding-bottom:5px;
}

.navbar a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:white;
    transition:width 0.3s ease;
}

.navbar a:hover::after{
    width:100%;
}

.container{
    width:1100px;
    margin:auto;
    margin-top:20px;
}

.featured{
    background:#f5f5f5;
    padding:20px;
    margin-bottom:20px;
}

.featured h2{
    margin-top:0;
}

.grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:20px;
}

.article{
    background:#f5f5f5;
    padding:15px;
}

.article h3{
    margin-top:0;
    text-decoration: none;
    color: inherit;
}

.article:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.outer-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 140px;
    box-sizing: border-box;
}

.story-page {
    max-width: 760px;
    margin: 0 auto;
}

.story-headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    margin: 30px 0;
}

.story-featured-image {
    margin-bottom: 30px;
}

.story-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-body {
    font-size: 18px;
    line-height: 1.9;
    color: #111;
    white-space: normal;
}

.story-body p {
    margin-bottom: 24px;
}

.footer-spacing {
    height: 40px;
}

footer{
    width: 100%;
    margin-top: 40px !important;
    background:#111;
    color:white;
    padding:20px;
    text-align:center;
    font-weight: normal;
}

.site-title{
    text-align:center;
    margin:20px 0;
}

.site-title img{
    max-width:600px;
    height:auto;
}

/* CONTACT PAGE */
/* Page center */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px; /* 👈 controls space above footer */
    background-color: #f5f5f5;
}

/* Box */
.contact-box {
    background-color: #fafafa;
    padding: 40px 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Title */
.contact-box h1 {
    margin-bottom: 25px;
    font-size: 24px;
    letter-spacing: 1px;
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;

    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;

    box-sizing: border-box;
}

/* Textarea */
.textarea {
    height: 120px;
    resize: none;
}

/* Focus effect */
.input-field:focus {
    border-color: black;
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Hover */
.submit-btn:hover {
    background-color: #222;
}

.success-text {
    color: #16a34a; /* clean green */
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.error-text {
    color: #dc2626; /* clean red */
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.story-featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.story-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
