/* Vietnam Pages - Final Consolidated CSS */
/* All working styles consolidated into one file */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: #5d6d7e;
    border-bottom: 2px solid #85929e;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.2rem;
    text-align: justify;
    hyphens: auto;
}

/* Links */
a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6b8e23;
}

nav {
    background: linear-gradient(135deg, #5d6d7e, #85929e);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: #1a1a1a;
    font-size: 1.0rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    background: #a8c090 !important;
    color: #2f4f2f !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.3s ease !important;
    border: 2px solid #6b8e23 !important;
}

nav ul li a:hover {
    background: #6b8e23 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

nav ul li a.active {
    background: #556b2f !important;
    color: white !important;
}

.hero {
    background: linear-gradient(rgba(93, 109, 126, 0.8), rgba(133, 146, 158, 0.8)), 
                url('images/convoy.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 2rem 2rem !important;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem 2rem 2rem;
}

.intro, .text {
    background: #fafafa;
    padding: 2.5rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    color: #1a1a1a;
    line-height: 1.6;
}

footer {
    background: #5d6d7e;
    color: white;
    text-align: center;
    padding: 2rem;
}

.image-caption-container {
    text-align: center;
    margin: 2rem auto;
    max-width: 100%;
    background: #fafafa;
    padding: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.mainpic {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.caption {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Button styles */
.btn, .filter-btn, .simple-btn, .admin-link {
    background: linear-gradient(135deg, #a8c090, #8fbc8f) !important;
    color: #2f4f2f !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.btn:hover, .filter-btn:hover, .simple-btn:hover, .admin-link:hover {
    background: linear-gradient(135deg, #6b8e23, #556b2f) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Floating images for text flow */
.floating-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    width: 45%;
    max-width: 400px;
}

.floating-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    width: 45%;
    max-width:400px;
}

.floating-left img, .floating-right img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive design */
@media (max-width: 768px) {
    .floating-left, .floating-right {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .floating-left, .floating-right {
        width: 40%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    main {
        padding: 1rem;
    }
}
