@font-face {
    src: url(fonts/BebasNeue-Regular.ttf);
    font-family: BebasNeue;
}

@font-face {
    src: url(fonts/BungeeInline-Regular.ttf);
    font-family: BungeeInline;
}

.body {
    max-width: 100%;
    overflow: hidden;
}
.fulshear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #5d2d83;
    height: 170px;
    text-align: center;
    padding-left: 30px;

    
   
}
.FULSHEAR {
    font-size:90px;
    font-family: BebasNeue;
    color: white;
    letter-spacing: 10px;
    
}
.tsa {
    font-size:90px;
    font-family: BebasNeue;
    color: white;
    letter-spacing: 10px;

}


.nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding-top: 15px;
    font-size: 20px;
    font-family: Roboto;
    background-color:rgb(84, 27, 138);
    height: 35px;

}
.nav a {
    color: white;
    padding-bottom: 1px;
    font-weight: 700;
    text-decoration: none;
}
.nav a:hover {
    font-size: 22px;
    font-weight: bolder;
    text-decoration: underline;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    margin: 0;
    padding: 50px;
    
}

.grid-container p {
    font-family: BebasNeue;
    font-size: 25px;
    text-align: justify;
    line-height: 45px;
}
.grid-container h2 {
    font-family: BungeeInline;
    font-size: 30px;
    text-align: center;

    padding-bottom: 40px;
    color: #5d2d83;
}

.grid-item {
    padding: 50px;

}
.grid-item img {
    width: auto;
    height: 500px;
    
    max-width: 700px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
    margin: 0;
    padding: 0;
    display: block;
}

/* Ensure the title and paragraph appear above the image regardless of HTML order */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.grid-item h2,
.grid-item p {
    order: 1; /* text first */
    width: 100%;
}
.grid-item img {
    order: 2; /* image after text */
    margin-top: 20px;
}


.as {
    font-family: BungeeInline;
    text-align: center;
    color: #5d2d83;
    font-size: 50px;
    text-shadow: 2px 2px 5px gray;

}
.contacts img {
    width: 100px;

}

.contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    background: #000000;
    gap: 60px;
    font-family: BebasNeue;
    font-size: 40px;
    color: white;
   background-image: url("images-home/pattern.png");
   text-shadow: 2px 2px 5px black;
}

.contacts h2 {
    font-family: BungeeInline;
}

@media (max-width: 1024px) {
    .FULSHEAR, .tsa {
        font-size: 60px;
    }
    .nav {
        gap: 20px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .fulshear {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 10px;
    }
    .FULSHEAR, .tsa {
        font-size: 40px;
        letter-spacing: 4px;
        text-align: center;
    }
    .nav {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 16px;
        height: auto;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .FULSHEAR, .tsa {
        font-size: 28px;
    }
    .nav {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 16px;
        height: auto;
        padding: 10px 0;
    }
}

@media (max-width: 375px) {
    .FULSHEAR, .tsa {
        font-size: 20px;
        letter-spacing: 2px;
    }
    .nav {
        flex-wrap: wrap;
        gap: 15px;
        font-size: 16px;
        height: auto;
        padding: 10px 0;
    }
}

/* Responsive: tablets and smaller */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
        padding: 40px;
    }
    .grid-container p {
        font-size: 20px;
        line-height: 38px;
    }
    .grid-item img {
        height: 420px;
        max-width: 100%;
    }
    .as {
        font-size: 40px;
    }
    .contacts {
        gap: 40px;
        font-size: 32px;
        padding: 40px 0;
    }
    .contacts img {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* stack into single column */
        padding: 30px 16px;
        gap: 20px;
    }
    .grid-item {
        padding: 20px 0;
    }
    .grid-container p {
        font-size: 18px;
        line-height: 30px;
    }
    .grid-item img {
        width: 100%;
        height: auto;
        max-width: 700px;
    }
    .as {
        font-size: 36px;
    }
    .contacts {
        flex-direction: column;
        font-size: 20px;
        gap: 20px;
        text-align: center;
        padding: 20px 0;
        background-size: cover;
        word-break: break-word;
    }
    .contacts img {
        width: 60px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        padding: 20px 12px;
    }
    .grid-container p {
        font-size: 16px;
        line-height: 26px;
    }
    .grid-item img {
        width: 100%;
        height: auto;
    }
    .as {
        font-size: 32px;
    }
    .grid-container {
        padding: 20px 12px;
    }
    .grid-container p {
        font-size: 16px;
        line-height: 26px;
    }
    .grid-item img {
        width: 100%;
        height: auto;
    }
    .as {
        font-size: 32px;
    }
    .contacts {
        flex-direction: column;
        font-size: 16px;
        gap: 16px;
        padding: 16px 0;
        text-align: center;
        background-size: cover;
        word-break: break-word;
    }
    .contacts img {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .grid-container p {
        font-size: 14px;
        line-height: 22px;
    }
    .as {
        font-size: 28px;
    }
    .grid-container p {
        font-size: 14px;
        line-height: 22px;
    }
    .as {
        font-size: 28px;
    }
    .contacts {
        flex-direction: column;
        font-size: 18px;
        gap: 16px;
        padding: 12px 0;
        text-align: center;
        background-size: cover;
        word-break: break-word;
    }
    .contacts img {
        width: 60px;
    }
}

@media (max-width: 375px) {
    .grid-container p {
        font-size: 12px;
        line-height: 20px;
    }
    .as {
        font-size: 24px;
    }
    .grid-container p {
        font-size: 12px;
        line-height: 20px;
    }
    .as {
        font-size: 24px;
    }
    .contacts {
        flex-direction: column;
        font-size: 12px;
        gap: 10px;
        padding: 10px 0;
        text-align: center;
        background-size: cover;
        word-break: break-word;
    }
    .contacts img {
        width: 36px;
    }
}


