/* ================================
   Global Styles
=================================*/
body.home-page {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    background: url('/images/raftsunset2.png') center center / cover no-repeat fixed;
    background-color: rgba(0,0,0,0.2);
    background-blend-mode: darken;
}

.bls-home-logo {
    height: 150px;
    width: 150px;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 0;
}


/* ================================
   Ship Transmission Box
=================================*/
.ship-transmission {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: min(92vw, 440px);
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00ffff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    color: #00ffff;
    text-align: center;
    z-index: 1002;
    animation: flicker 1.5s infinite alternate;
    overflow-wrap: anywhere;
}

.transmission-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
}

.transmission-close:hover {
    opacity: 1;
}

#ai-greeting {
    display: block;
    margin-bottom: 22px;
    font-size: 0.85em;
}

/* ================================
   Sections
=================================*/
.about,
.donations {
    max-width: 1200px;
    margin: 10px auto;
    padding: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}


/* Headings & Text */
.about h2,
.donations h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 14px;
    text-align: center;
}

.about p,
.donations p {
    color: #c9d4df;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
}


/* ================================
   Core Values List
=================================*/
.about ul {
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.about ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #e6edf3;
}

.about ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ffff;
}

/* Highlight first letters */
.about ul li span {
    color: #ffd700;
    font-weight: bold;
}


/* ================================
   Cards
=================================*/
.card {
    margin: 15px;
    border: 2px solid #ffffff9d;
    border-radius: 7.333px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
}

.card a.btn {
    margin-top: auto;
    align-self: center;
}


/* ================================
   About Layout (1–2–1)
=================================*/
.bottom-top-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}


/* ================================
   Who We Are Section
================================= */
#who-we-are {
    position: relative;
    overflow: hidden;

    /* Background image + overlay color */
    background: url("/images/mtsunset.png") center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.849);
    background-blend-mode: darken;

    grid-column: 1 / -1;
    text-align: left;
    padding: 24px;

    /* Modern browsers */
    -webkit-text-stroke: 0.15px black;
}

/* Blurred background layer */
#who-we-are::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("/images/mtsunset.png") center/cover no-repeat;
    

    filter: blur(0px);
    transform: scale(1.05);

    z-index: 0;
}

/* Keep content above blur */
#who-we-are > * {
    position: relative;
    z-index: 1;
}

/* Text Styling */
#who-we-are p,
#who-we-are li {
    color: #ffffff;
    font-weight: 600;
}

/* Lists inside this section */
#who-we-are ul {
    list-style: none;       /* remove default bullets */
    padding-left: 2em;      /* space for custom bullets */
}

#who-we-are ul li {
    position: relative;
    margin-bottom: 0.5em;
    padding-left: 2em;      /* space for bullet */
    line-height: 1.4;
}

/* Custom bullet using background image */
#who-we-are ul li::before {
    content: "";
    position: relative;
    filter: brightness(2) drop-shadow(0 0 2px #000000);
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
}

/* Core Values Styling */
.home-core-values span {
    font-size: 1.5em; 
}

.home-core-values strong {
    font-size: 1.2em; 
}

/* Responsive tweak for smaller screens */
@media (max-width: 768px) {
    #who-we-are ul li::before {
        width: 12px;
        height: 12px;
    }

    #who-we-are ul li {
        padding-left: 1.5em;
    }
}


/* Events full width */
.about-cards .events {
    grid-column: 1 / -1;
}


/* ================================
   Events
=================================*/
.events {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.events strong {
    color: #ffd700;
}

.events h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255,215,0,0.7);
}

.events p {
    margin-bottom: 14px;
    line-height: 1.55;
    color: #c9d4df;
}

.events ul {
    list-style: none;
    padding: 0;
    margin-bottom: 14px;
}

.events li {
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e6edf3;
}

ul.events{
    list-style-type: none;
}


/* ================================
   Divisions
=================================*/
#divisions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

#divisions .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}


/* ================================
   Gallery
=================================*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.gallery-grid a {
    display: flex;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.35);
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    object-fit: cover;
    border: 2px solid #ffffff9d;
    border-radius: 12px;
}

/* First item full width */
.home-page .gallery-grid a:nth-child(1) {
    grid-column: 1 / -1;
}


/* ================================
   Animations
=================================*/
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes fadeInButton {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* ================================
   Mobile & Tablet Optimization
=================================*/

/* Tablets & Small Laptops */
@media (max-width: 900px) {
    .about,
    .donations {
        padding: 20px;
        margin: 12px;
    }

    .bottom-top-row {
        grid-template-columns: 1fr;
    }

    .discord-transmission-button {
        min-width: 180px;
        padding: 12px 16px;
    }

    .bls-home-logo {
        width: 120px;
        height: 120px;
    }
}

/* Phones & Small Tablets */
@media (max-width: 768px) {
    body.home-page {
        background-attachment: scroll;
    }

    .about,
    .donations {
        padding: 16px;
        margin: 10px;
    }

    .card {
        margin: 10px 0;
        padding: 16px;
    }

    .discord-transmission-button {
        width: 100%;
        min-width: unset;
        font-size: 0.95rem;
    }

    .events {
        padding: 16px;
    }

    .gallery-grid {
        gap: 12px;
    }

    .about h2,
    .donations h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .bls-home-logo {
        width: 95px;
        height: 95px;
        margin-top: 12px;
    }

    .ship-transmission {
        bottom: 6vh;
        width: 95vw;
        padding: 14px;
        font-size: 0.9rem;
    }

    #ai-greeting {
        font-size: 0.8rem;
    }

    .about h2,
    .donations h2,
    .events h2 {
        font-size: 1.3rem;
    }

    .about p,
    .donations p,
    .events p,
    .events li {
        font-size: 0.9rem;
    }

    .discord-transmission-button {
        padding: 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .about ul li {
        padding-left: 20px;
    }
}

/* Very Small Devices (Older Phones) */
@media (max-width: 360px) {
    .ship-transmission {
        font-size: 0.85rem;
        padding: 12px;
    }

    .about,
    .donations {
        padding: 12px;
    }

    .discord-transmission-button {
        font-size: 0.85rem;
        padding: 12px;
    }
}

.card#new-to-beskar {
    background:url(/images/djangonbporttransparent6.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom;
    background-position-x: right;
    background-size: 250px;
}

.card#new-to-beskar p{
    text-indent: 15px;
    text-align: left;
    max-width: 330px;
}

