/* Sections Cards Styling */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
#sections .cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

#sections .card {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #F4F4F4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#sections .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#sections .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#sections .card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.75); 
}

#sections .card-title {
    color: #F4F4F4;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}



#sections .click-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

#sections .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

#sections .card:hover .card-image {
    transform: scale(1.05);
}

#sections .card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.6);
}

#sections .card:hover .click-hint {
    opacity: 1;
    transform: translateY(0);
}

.sections-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.sections-modal-content {
    background-color: #F4F4F4;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1200px;
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    max-height: 90vh; 
    overflow-y: auto;
}

.sections-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sections-close:hover,
.sections-close:focus {
    color: #000;
    background: rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.sections-modal-header {
    background-color: #353535;
    color: #F4F4F4;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin: 20px 0 0 30px;
    width: auto;
}

.sections-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.sections-modal-body {
    padding: 20px 30px 30px 30px;
}

.sections-modal-description {
    margin-bottom: 20px;
    color: #606060;
    line-height: 1.6;
    font-size: 18px;
}

.sections-modal-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sections-column {
    padding: 20px;
    border-radius: 8px;
}

.sections-column h3 {
    color: #353535;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
}

.sections-column h3:not(:first-child) {
    margin-top: 25px; 
}

.sections-column p {
    color: #606060;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
}

.sections-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sections-column li {
    color: #606060;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.sections-column li:before {
    content: "• ";
    color: #353535;
    margin-right: 8px;
}

@keyframes sectionsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sectionsSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .sections-modal-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sections-modal-body {
        padding: 20px;
    }

    .sections-modal-content {
        margin: 2% auto;
        max-height: 95vh;
        width: 98%;
    }
      .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card {
        height: 250px;
    }
    
    .card-title {
        font-size: 18px;
    }

    .click-hint {
        font-size: 12px;
        padding: 6px 12px;
    }
        .sections-modal-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sections-modal-body {
        padding: 20px;
    }

    .sections-modal-content {
        margin: 2% auto;
        max-height: 95vh;
        width: 98%;
    }

    #sections .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    #sections .card {
        height: 250px;
    }
    
    #sections .card-title {
        font-size: 18px;
    }

    #sections .click-hint {
        font-size: 12px;
        padding: 6px 12px;
    }

  
    #sections {
        padding: 20px 10px;
    }
}







@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    #sections .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }

    #sections .card {
        height: 300px;
        max-width: 100%;
    }

    #sections .card-title {
        font-size: 16px;
        padding: 0 10px;
    }

   
    #sections h1 {
        font-size: 2rem;
        text-align: center;
    }

    #sections p {
        font-size: 1rem;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }
}


@media (max-width: 320px) {
    #sections .cards-container {
        padding: 0;
    }

    #sections .card {
        height: 280px;
    }

    #sections .card-title {
        font-size: 14px;
    }
}