/* ===== PAGE STYLES ===== */

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

/* 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 */
}

/* Ensure nav links are readable on glass */
.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);
}
/* Logo sizing */
.logo {
    height: 60px;
}


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

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: .2s;
}

.navbar a:hover,
.navbar a.active {
    color: #0077ff;
}

.sign-btn {
    background: #0077ff;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff !important;
}

/* ================= 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 */
}

/* Mobile view */
@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;
    }
}


/* CONTENT LAYOUT */
.content {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

.page-title {
    font-size: 2rem;
    color: #ff7b00;
    margin-bottom: 0.5rem;
}

.subtitle {
    margin-bottom: 2rem;
    font-weight: 300;
}

/* CARD STYLING */
.info-card, .sources-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.info-card h3, .sources-card h3 {
    color: #ff7b00;
    margin-bottom: 1rem;
}

.info-card ul {
    padding-left: 1.2rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.tip {
    font-style: italic;
    color: #555;
}

.sources-card ul {
    list-style-type: square;
    padding-left: 1.3rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .content {
        padding: 1rem;
    }
}
#backToTop {
  display: block; /* Hidden by default */
  position: fixed; /* Stays in place when scrolling */
  bottom: 20px; /* 20px from bottom */
  right: 30px; /* 30px from right */
  z-index: 99; /* Ensures it stays on top of other elements */
  background-color: #007bff; /* Button color */
  color: white;
  padding: 15px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

#backToTop:hover {
  background-color: #0056b3; /* Darker blue on hover */
}
/* FOOTER STYLES */

footer {
    background: #f8f9fa;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
}

footer > div {
    flex: 1;
    min-width: 220px;
}

footer img {
    height: 45px;
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    color: #0077cc;
    text-decoration: none;
    margin-bottom: 6px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-contact p {
    margin: 4px 0;
    color: #555;
}


