:root {
    --navy: #001f3f;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --accent: #003366;
    --text: #333333;
    --input-bg: #ffffff;
}

body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    min-height: 400px;
}

/* Navbar */
.navbar {
    background-color: var(--navy);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }

/* Admin Button */
.admin-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background-color: white;
    color: var(--navy);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hero & Flag Animation */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--accent);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.hero h1, .hero-subtext {
    position: relative;
    z-index: 3;
    color: black;
}

.hero-subtext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    margin-top: 10px;
}

.flag-window {
    height: 30px; 
    width: 45px;
    overflow: hidden;
    display: inline-block;
    border-radius: 4px;
    vertical-align: middle;
    background: rgba(255,255,255,0.1);
}

.flag-strip {
    display: flex;
    flex-direction: column;
    animation: flag-scroll 45s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.flag-strip .fi {
    min-height: 30px;
    min-width: 45px;
}

@keyframes flag-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-900px); }
}

/* Admin Posting */
.admin-posting {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
}

.form-group { margin-bottom: 15px; }
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(0,51,102,0.5);
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-image { width: 100%; height: auto; max-height: 400px; object-fit: cover; }
.post-content { padding: 25px; }

.post-text {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-text.expanded {
     display: block;
     line-clamp: unset;
     -webkit-line-clamp: unset;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-weight: bold;
}

/* Actions */
.actions-container {
    display: flex;
    gap: 15px;
    padding: 15px 25px;
    border-top: 1px solid #eee;
}

.like-btn, .dislike-btn {
    background: var(--white);
    border: 1px solid var(--navy);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Feedback Section - RESTORED ORIGINAL STYLING */
.contact-section {
    background: #00152b;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.contact-form { 
    max-width: 500px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Social Links - UPDATED AS REQUESTED */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 1.4rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--white);
}

.social-links a[aria-label="Facebook"]:hover { color: #1877F2; }
.social-links a[aria-label="Instagram"]:hover { color: #E4405F; }

/* Footer */
footer {
    background-color: #000a14;
    color: #999;
    text-align: center;
    padding: 40px 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
}

.btn-submit {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid white;
    padding: 12px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 10px; padding: 1rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero-subtext { font-size: 1rem; }
    .post-image { max-height: 250px; }
}