/* ====== FLOATING BACK BUTTON ====== */
.back-to-index {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    padding: 0;
}

.back-to-index:hover {
    background: linear-gradient(135deg, #219653 0%, #27ae60 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.back-to-index::before {
    content: "←";
    margin-right: 0;
}

/* ====== BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ====== HEADER BOX ====== */
.header-box {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.header-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.header-box h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    word-wrap: break-word;
}

.header-box .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    word-wrap: break-word;
}

/* ====== HASHTAGS AND DATE ====== */
.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 15px;
}

.hashtag {
    background: #e9ecef;
    color: #2c3e50;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.hashtag:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.date {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* ====== CONTENT BOXES ====== */
.content-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    width: 100%;
    word-wrap: break-word;
    margin-bottom: 25px;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.box-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.box-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.box-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    word-wrap: break-word;
}

.box-content {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
    width: 100%;
}

.box-content p {
    margin-bottom: 15px;
}

.box-content ul, 
.box-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.box-content li {
    margin-bottom: 6px;
}

.box-content a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.quote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

.image-container {
    margin: 25px 0;
    width: 100%;
}

.content-image {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    height: auto;
}

.image-caption {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    padding: 0 10px;
}
.video-container {
    margin: 20px 0;
    text-align: center;
}
.video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.video-caption {
    font-size: 0.9em;
    color: #555;
    margin-top: 8px;
}
/* ====== NAVIGATION BUTTONS ====== */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 20px;
}

.nav-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #27ae60);
}

/* ====== FOOTER ====== */
.footer {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 0.95rem;
    border-top: 1px solid #eaeaea;
    margin-top: 20px;
}

@media (max-width: 768px) {
    body { padding: 15px; }
    .header-box { padding: 40px 20px; }
    .header-box h1 { font-size: 1.5rem; }
    .box-title { font-size: 1.5rem; }
    .content-box { padding: 18px; }
    .nav-btn { padding: 12px 24px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .header-box h1 { font-size: 1.3rem; }
    .content-box { padding: 15px; }
    .box-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .nav-buttons { gap: 12px; }
    .nav-btn { padding: 10px 18px; font-size: 0.85rem; }
}

.spacer {
    height: 50px;   /* controls the amount of white space */
    margin: 0;
    padding: 0;
}