/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FAFAFA;
    font-family: sans-serif;
}

/* Wrapper */
.size-for-big-screens2 {
    max-width: 1200px; /* limit overall width */
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
nav div:first-child {
    background-color: #7c73e6;
    padding: 10px;
}

nav div:first-child h1 {
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 1px;
    color: white;
    margin-left: 10px;
}

nav div:last-child {
    background-color: white;
    padding: 8px;
}

/* Main story container */
.container2 {
    width: 100%;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
}

/* Story title */
.container2 h1 {
    text-align: center;
    letter-spacing: 1px;
    font-size: 35px;
    margin-bottom: 15px;
}

/* Main story image */
.container2 img {
    max-width: 700px; /* cap max width */
    width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Story text */
.container2 p {
    margin: 15px 0;
    letter-spacing: 0.5px;
    font-size: 19px;
    color: grey;
    text-align: left;
}

/* Metadata row */
.d-flex {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

/* Forms */
form input, textarea {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    background-color: #FAFAFA;
    border: none;
    outline: none;
    border-bottom: 3px solid #7c73e6;
    padding: 10px 5px;
    font-size: 16px;
}

form button {
    border: 0;
    background-color: #7c73e6;
    color: white;
    padding: 10px 15px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

/* Comments */

.comment {
    background-color: #FAFAFA;
    padding: 5px 10px;
    margin-bottom: 15px;
}

.comment p {
    font-size: 16px;
}

/* Suggested stories */
.other-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.other-article-card {
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

.other-article-image {
    width: 100%;
    height: 200px; /* fixed height for uniformity */
    object-fit: fill;
    display: block;
    border-radius: 10px 10px 0 0;
}

.other-article-content {
    padding: 1px;
    text-align: center;
}

.other-article-content a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

.back-btn {
    background-color: #7c73e6;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
  }
  .back-btn:hover {
    background-color: #958cf0;
  }

/* Responsive */
@media (max-width: 900px) {
    .other-articles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container2 img {
        max-width: 100%; /* scale down on mobile */
    }

    .container2 {
        margin: 20px auto;
    }
    .other-articles {
        grid-template-columns: 1fr;
    }

    .other-article-image {
        max-width: 100%;
        height: 170px;
    }
    .size-for-big-screens2 {
    padding: 8px;
}
}
