:root {
    --main: #E1306C;
    --dark: #bc1888;
    --bg: #f4f7f6;
    --white: #fff;
}

body {
    margin: 0;
    font-family: Segoe UI, Tahoma, sans-serif;
    background: var(--bg);
}

.wrapper {
    max-width: 850px;
    margin: 30px auto;
    padding: 20px;
}

/* ---------- HEADER STYLES ---------- */
header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #555;
    padding: 5px;
}

.lang-content {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
}

.lang-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.lang-content a:hover {
    background: #f1f1f1;
}

.lang-dropdown:hover .lang-content {
    display: block;
}

.tool-container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
}

.step-box {
    background: #fff5f8;
    border: 1px solid #ffd1df;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.btn {
    width: 100%;
    min-height: 52px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: var(--dark);
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* ---------- RESULT GRID LAYOUT ---------- */
#story-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

/* Card Structure */
.story-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Media (Image/Video) */
.story-card img,
.story-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Download Button */
.story-card .download-btn {
    display: block;
    background: #E1306C;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    cursor: pointer;
}

.story-card .download-btn:hover {
    background: #bc1888;
}

/* Responsive: 2 Columns on Mobile */
@media (max-width: 768px) {
    #story-display {

        .story-card img,
        .story-card video {
            height: 200px;
        }
    }
}

/* ---------- FOOTER STYLES ---------- */
footer {
    background: #fff;
    margin-top: 50px;
    padding: 40px 20px;
    border-top: 1px solid #eee;
}

.footer-tools {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.footer-tools h3 {
    margin-bottom: 30px;
    color: #333;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tool-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.tool-col a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.tool-col a:hover {
    color: var(--main);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 850px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
    font-size: 14px;
}

.footer-nav {
    margin-top: 10px;
}

.footer-nav a {
    text-decoration: none;
    color: #555;
    margin: 0 5px;
}

.footer-nav a:hover {
    color: var(--main);
}



.article-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}