/* ---------- GENERAL STYLES ---------- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: white;
}

/* ---------- HOME PAGE ---------- */
.home-page {
    background-image: url("../static/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 60px;
}

/* ---------- POLICY PAGE ---------- */
.policy-page {                          /* full-bleed background */
    background-image: url("../static/policy_background_2.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;   /* or center bottom if you want to anchor the bottom edge */
    /* background-attachment: fixed;  <-- DELETE or comment out */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* Translucent panel that holds the policy content */
.policy-wrapper {
    width: 100%;
    max-width: 900px;                   /* room for long filenames */
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    max-height: calc(100vh - 80px);   /* leave room for the 20 px top + 60 px bottom padding */
    overflow-y: auto;                 /* allow the panel to scroll if content is taller */
}

.policy-header {
    position: sticky;      /* sticks to the top of .policy-wrapper */
    top: 0;
    z-index: 10;           /* sit above list items */
    /*background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);*/
}

/* ---------- DATA-ANALYTICS PAGE ---------- */
.data-analytics-page {
    /* background-image: url("../static/background_2.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100vh; */
    background: none !important;
    background-color: white !important;
}

/* ---------- COMMON COMPONENTS ---------- */
.container {
    padding: 20px;
    text-align: justify;
}

/* Typography */
h1 { font-size: 2.5rem; margin-bottom: 20px; }
p  { font-size: 1.15rem; margin-bottom: 15px; }

/* Buttons */
.btn-primary {
    background-color: #061624d0;
    border: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-primary:hover { background-color: #0056b3; }

/* Form container (used on other pages) */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
select.form-select { width: 100%; padding: 10px; font-size: 1rem; }
.alert { margin-top: 10px; font-size: 1rem; }

/* List group (PDF links, RSS items) */
.list-group-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    width: 90%;
    max-width: 750px;
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}
.list-group-item a { color: white; font-weight: 400; text-decoration: none; }
.list-group-item a:hover { text-decoration: underline; }

/* RSS timestamp visibility */
.list-group-item small,
.rss-timestamp {
    color: #cccccc;
    font-size: 0.85rem;
}
.list-group-item:hover small,
.list-group-item:hover .rss-timestamp { color: #ffffff; }

/* --- News feed panel (centre it on the page) --- */
.rss-wrapper {
    align-self: flex-start;
    margin: 40px 0 40px 40px;
    max-width: 700px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);  /* 25 % opacity */
    backdrop-filter: blur(3px);       /* optional subtle glass effect */
}


@media (max-width: 900px) {
    .home-page {
        background-size: auto 100%;
        background-repeat: repeat-y;
        background-position: center top;
        background-color: #0b1220;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 140px;
        align-items: stretch;
    }

    .rss-wrapper {
        margin: 20px auto;
        width: calc(100% - 20px);
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    .list-group-item {
        width: 100%;
        box-sizing: border-box;
    }
}
