@font-face {
    font-family: 'GeneralSansRegular';
    src: url(/assets/fonts/GeneralSans-Regular.woff2);
}
@font-face {
    font-family: 'GeneralSansRegularItalic';
    src: url(/assets/fonts/GeneralSans-RegularItalic.woff2);
}
@font-face {
    font-family: 'GeneralSansLight';
    src: url(/assets/fonts/GeneralSans-Light.woff2);
}
@font-face {
    font-family: 'BoskaLight';
    src: url(/assets/fonts/Boska-Light.woff2);
}
@font-face {
    font-family: 'BoskaItalicLight';
    src: url(/assets/fonts/Boska-LightItalic.woff2);
}
@font-face {
    font-family: 'BoskaItalicRegular';
    src: url(/assets/fonts/Boska-MediumItalic.woff2);
}

* {
    cursor: url('/storage/Artboard3.png'), auto !important;
    
}
body {
    
    font-family: 'GeneralSansRegular';
    background-color: #f6f5e9;
    overflow-x: hidden;
    cursor: url('/storage/Artboard2.png'), auto !important;
    padding-left: 56.229px !important;
    padding-right: 56.229px !important;
}


.banner-container {
    position: relative;
    width: 100%;
    justify-self: center;
    height: 220px; /* Updated height */
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    /* transition: transform 3s ease;  */
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.5s ease;  */     
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.image-artikel{
        transition: transform 1s ease; 

}
.image-artikel img{
    transition: transform 0.5s ease;      
}

/* Zoom in and out classes */
.zoom-in {
    transform: scale(1.03); /* Adjust scale value for zoom effect */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.zoom-out {
    transform: scale(1); /* Normal scale */
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.troops-section {
    width: 100%;
    justify-self: center;
    text-align: center;
    padding: 0px 0px 0px 0px;
    color: #333;
    font-family: 'GeneralSansRegular';
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    /* border: 1px solid #ccc;  */
    border-radius: 10px; /* Optional: Rounded corners for the section border */
}

.troops-section .text {
    margin: 17px;
    font-size: 28px;
    font-family: 'GeneralSansRegular';
}

.troops-grid {
    display: flex;
    flex-wrap: wrap; /* Enables wrapping to a new row if more than 4 items */
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    
}

.troop-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    width: calc(25% - 2rem); /* Adjust width to fit 4 items per row */
    text-align: left; /* Align text to the left */
    font-family: 'GeneralSansLight';
    transition: transform 0.3s;
    box-sizing: border-box;
    /* border: 1px solid #ccc;  */
}

.troop-card:hover {
    transform: translateY(-5px);
}

.troop-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 100% !important;
}
.troop-card img:hover { 
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    filter: brightness(85%);
}

.troop-card h3 {
    font-size: 20px;
    margin-top: 0px; 
    margin-bottom: 0px;
    font-family: 'GeneralSansRegular';
    color: #333;
}

.troop-card p {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 10px;
}

.troop-card .date {
    font-size: 16px; /* Smaller font size for date */
    color: #999; /* Lighter color for the date */
    margin-top: 0.5rem; /* Space above the date */
}

.view-details-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-family: 'GeneralSansRegular';
    font-weight: 500;
    transition: color 0.3s;
}

.view-details-link i {
    margin-left: 16px; /* Spacing between text and arrow */
}
/* Base styles remain unchanged */

/* Responsive styles */
@media (max-width: 1080px) {
    .banner-container {
        height: 250px; /* Reduce banner height */
    }
    
    .troops-grid {
        gap: 1.5rem; /* Reduce grid gap */
    }

    .troop-card {
        width: calc(33.33% - 1.5rem); /* Three items per row */
    }

    .troops-section h2 {
        font-size: 1.8rem;
    }
    
    .troop-card h3 {
        font-size: 20px;
    }
    
    .troop-card p,
    .view-details-link {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 !important
    }
    .banner-container {
        visibility: hidden; /* Further reduce banner height */
        display: none;
    }
    .troop-card {
        margin: 0 30px !important
    }
    
    .troops-grid {
        gap: 1rem; /* Reduce grid gap */
    }

    .troop-card {
        width: calc(50% - 1rem); /* Two items per row */
    }

    .troops-section h2 {
        font-size: 1.5rem;
    }
    
    .troop-card h3 {
        font-size: 0.95rem;
    }
    
    .troop-card p,
    .view-details-link {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 150px; /* Further reduce banner height */
    }
    
    .troops-grid {
        gap: 30px; /* Reduce grid gap */
    }

    .troop-card {
        width: calc(100% - 1rem); /* One item per row */
    }

    .troops-section h2 {
        font-size: 1.3rem;
    }
    
    .troop-card h3 {
        font-size: 0.9rem;
    }
    
    .troop-card p,
    .view-details-link {
        font-size: 16px;
    }
}
