/* PC version (unchanged) */

@font-face {
    font-family: 'Futura';
    src: url('Assets/FuturaLT.ttf') format('truetype');
    font-weight: normal; /* or 'bold' if needed */
    font-style: normal; /* or 'italic' if needed */
}

body {
    font-family: 'Futura', 'Trebuchet MS', sans-serif; /* Fallback fonts */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    background-image: url('Assets/bkgr.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

footer {
    background-color: #04473a;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

header {
    background-color:#04473a;
    color: #fff;
    padding: 1em 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header h1 {
    margin: 0;
    text-align: left;
    flex: 1;
}

nav {
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}
.team-button {
    display: inline-block;
    padding: 10px 10px;
    background-color: #12826c;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.5s;
    position: relative;
    padding-left: 17px;
    margin-right: 10px; 
}
.team-button:hover {
    background-color: #26ad92;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #12826c;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.5s;
    position: relative;
    padding-left: 40px;
    margin-right: 10px; 
}

.nav-button:before {
    content: '';
    position: absolute;
    top: 45%;
    left: 10px;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

.nav-button.home:before {
    background-image: url('Assets/home.png');
}
.nav-button.desc:before {
    background-image: url('Assets/description.png');
}

.nav-button.left:before {
    background-image: url('Assets/arrow_left.png');
}
.nav-button.right:before {
    background-image: url('Assets/arrow_right.png');
}


.nav-button:hover {
    background-color: #26ad92;
}

.header-flag,
.header-image {
    height: 50px;
    margin-left: 20px;
}

.header-flag {
    order: 2;
}

.header-image {
    order: 3;
}

main {
    padding: 1em;
}

.article-pic {
    height: 250px;
    margin-left: 20px;
}
.description {
    background-color: rgba( 18, 130, 108, 0.8);
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    max-width: 50%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.description p {
    text-align: justify;
    line-height: 1.9;
    font-size: 22px;
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
}

.post {
    background-color: rgba( 18, 130, 108, 0.8);
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #fff;
    max-width: 50%;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 buttons per row */
    gap: 10px;
}

.post p {
    text-align: justify;
    line-height: 1.9;
    font-size: 20px;
    font-family: 'Futura', 'Trebuchet MS', sans-serif;
}

.post button {
    background-color: #12826c;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 5px;
}

.post button:hover {
    background-color: #32b49a;
}

.two-columns {
    column-count: 2;
    column-gap: 5px;
    font-weight: bold;
  }
.three-columns {
    column-count: 3;
    column-gap: 5px;
    font-weight: bold;
  }
  
.two-columns, .three-columns {
    padding: 0;
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(4, 97, 191, 1);;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 50%;
    width: 100%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 10px;
    color: #fff;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(72, 61, 139);
    text-decoration: none;
    cursor: pointer;
}

.social-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    position: relative;
    padding-left: 40px;
}

.social-button:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-button.BEC:before {
    background-image: url('Assets/insigna.png');
}

.social-button.CNSCB:before {
    background-image: url('Assets/sigla.png');
}

.social-button.BEC {
    background-color: #3b5998;
}

.social-button.CNSCB {
    background-color: #4CAF50;
}

.social-button:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    /* ========== General Layout ========== */
  body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Prevent janky scrolling on mobile */
}

    main {
        padding: 0.5em;
    }

    /* Prevent overflow in posts/articles */
    .post,
    .article {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .post img,
    .article img,
    .post iframe,
    .article iframe {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 1em;
    }

    /* ========== Header ========== */
    header {
        padding: 0.5em 0;
    }

    header h1 {
        font-size: 1.2em;
        text-align: center;
    }

    .header-content {
        padding: 0 10px;
    }

    .header-flag,
    .header-image {
        margin-left: 10px;
        height: 30px;
    }

    /* ========== Navigation ========== */
    nav ul,
    nav ul li {
        display: block;
        text-align: center;
    }

    .nav-button,
    nav ul li a {
        display: block;
        margin: 10px auto;
        font-size: 14px;
        padding: 10px 15px;
        padding-left: 45px; /* space for icon */
        text-align: left;
        position: relative;
    }

    .nav-button:before,
    nav ul li a:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    .description {
        background-color: rgba( 18, 130, 108, 0.8);
        padding: 0.5em;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        color: #fff;
        max-width: 95%;
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .description p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* ========== Article/Post ========== */
    .post {
        background-color: rgba( 18, 130, 108, 0.8);
        padding: 0.5em;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        color: #fff;
        max-width: 95%;
        width: 100%;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
    }

    .post p {
        font-size: 16px;
        line-height: 1.5;
    }

    .article-pic {
        width: 100%;
        height: auto;
        margin: 0 auto 1em;
        display: block;
    }

    /* ========== Modal ========== */
    .modal-content {
        width: 90%;
        max-width: none;
        margin: 30% auto;
        font-size: 14px;
    }

    /* ========== Columns ========== */
    .two-columns,
    .three-columns {
        column-count: 1;
    }

    /* ========== Buttons ========== */
    .team-button {
        font-size: 14px;
        padding: 10px 15px;
        padding-left: 15px;
        position: relative;
        text-align: left;
    }

    .team-button:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-button {
        font-size: 12px;
        padding: 5px 10px;
        padding-left: 30px;
        position: relative;
        text-align: left;
    }

    .social-button:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* ========== Footer ========== */
    footer {
        background-color: #04473a;
        color: #fff;
        text-align: center;
        padding: 1em 0;
        position: relative;
        width: 100%;
    }
}
