/* ================= CSS RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= ROOT VARIABLES ================= */
:root {
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #2563eb;
    --accent-hover: #1e40af;
    --border-light: #e5e7eb;
    --radius: 12px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
    --max-width: 1200px;
    --transition: 0.2s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #d9ecff 0%, #ffe8d6 100%);
    color: #333;
}

/* ================= HEADER / NAV ================= */
/* Header */
.main-header {
    position: sticky;               /* stays at the top */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;

    background: rgba(255, 255, 255, 0.4);  /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */

    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);         /* gentle shadow */
    
    z-index: 100; /* stays above content */
}
.logo {
    height: 65px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
    color: #007bff;
    background-color: rgba(0, 119, 255, 0.1);
}

.sign-btn {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sign-btn:hover {
    background-color: #0056b3;
}

/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}


@media (max-width: 700px) {
    .hamburger {
        display: block;      /* show hamburger */
        margin-left: auto;   /* push to right */
        font-size: 28px;
        cursor: pointer;
    }

    .navbar ul {
        display: none;       /* hide menu initially */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%;           /* dropdown below header */
        right: 0;            /* align to right */
        background: rgba(255, 255, 255, 0.82); /* glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 99;
    }

    .navbar ul.show {
        display: flex;       /* show menu when toggled */
    }

    .main-header {
        flex-direction: row;  /* logo left, hamburger right */
        align-items: center;
        padding: 15px 20px;
    }
}


/* ================= Q&A PAGE STYLES ================= */

.qna-header {
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
    padding: 0 20px;
}

.qna-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.qna-header p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 8px;
}

.qna-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qna-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 5px solid #2563eb;
}

.qna-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.qna-card p {
    color: #444;
    line-height: 1.5;
}

/* Post question form */
.question-form-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 20px;
    border-radius: 12px;
    background: #eef2ff;
}

.question-form-section h2 {
    margin-bottom: 10px;
}

#questionForm textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
}

#questionForm button {
    background: #2563eb;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

#questionForm button:hover {
    background: #1e4ecb;
}
.filter-bar {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.filter-bar button {
    padding: 6px 14px;
    border: 1px solid #2563eb;
    background: white;
    color: #1e61f1;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.filter-bar button:hover {
    background: #2563eb;
    color: white;
}
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* Footer */
footer {
    background: #001f4d;
   color: white;
    padding: 60px 40px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-left p {
    color: #b3b3cc;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-middle h4, .footer-right h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #b3b3cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B00; /* Orange hover */
    padding-left: 5px;
}

.footer-contact p {
    color: #b3b3cc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.footer-social a {
    color: #b3b3cc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

