/* Choral Events CSS - Complete Responsive Version */
* {
    box-sizing: border-box;
}

body {
    background-color: #04140C;
    margin: 0;
    padding: 0;
}

.supercontainer {
    padding: 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    display: flex;
    width: 100%;
    gap: 10px;
}

.icon-circle-outline {
    width: 48px;
    height: 48px;
    border: #A28F21 5px solid;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle {
    width: 32px;
    height: 32px;
    background-color: #A28F21;
    border-radius: 50%;
}

.clumsy-section {
    position: relative;
    z-index: 1;
    align-items: center;
    width: 90%;
}

.img, .img img {
    width: 100%;
    border-radius: 50px;
}

.folder-img {
    transition: transform 0.4s ease-in-out;
}

.folder-img, .folder-img img {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 50px);
    border-radius: 50px;
    height: 80%;
    object-fit: cover;
}

.clumsy-section:hover .folder-img {
    transform: translate(-50%, -70%);
}

.content-text {
    position: absolute;
    z-index: 3;
    bottom: 0;
    font-size: 1rem;
    padding: 2rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.103);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    color: white;
    width: 100%;
    max-height: 70%;
    overflow-y: auto; /* Allows scrolling if content is too long */
}

.content-text p {
    width: 100%;
    max-width: 100%;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-text .last-child {
    margin-bottom: 3rem;
}

.content-text h2 {
    font-size: clamp(1rem, 2vw, 1.8rem);
    line-height: 1.2;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 0.5rem 0;
    color: white;
}

.content-text h2:first-of-type {
    margin-top: 0;
}

.btn {
    background-color: #A2CCA6;
    color: #04140C;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    border: none;
    font-weight: 900;
    display: inline-block;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .supercontainer {
        padding: 4%;
    }
    
    .post-card {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .clumsy-section {
        width: 95%;
    }
    
    .content-text {
        padding: 1.5rem;
        max-height: 75%;
    }
    
    .content-text h2 {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }
    
    .content-text p {
        font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    }
    
    .folder-img, .folder-img img {
        width: calc(100% - 40px);
        height: 75%;
    }
    
    .img, .img img {
        border-radius: 40px;
    }
    
    .content-text {
        border-radius: 40px;
    }
}

/* Small Tablets (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .supercontainer {
        padding: 3%;
    }
    
    .post-card {
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .icon-circle-outline {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
    
    .icon-circle {
        width: 26px;
        height: 26px;
    }
    
    .clumsy-section {
        width: 100%;
    }
    
    .content-text {
        padding: 1.25rem;
        max-height: 80%;
    }
    
    .content-text h2 {
        font-size: clamp(0.95rem, 3vw, 1.3rem);
        -webkit-line-clamp: 2;
    }
    
    .content-text p {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        -webkit-line-clamp: 2;
    }
    
    .content-text .last-child {
        margin-bottom: 2rem;
    }
    
    .folder-img, .folder-img img {
        width: calc(100% - 30px);
        height: 70%;
    }
    
    .img, .img img {
        border-radius: 35px;
    }
    
    .content-text {
        border-radius: 35px;
    }
    
    .btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .post-card {
        gap: 0; /* Remove gap since circle is hidden */
        margin-bottom: 30px;
    }
    
    /* Hide icon circle and outline completely on mobile */
    .icon-circle-outline,
    .icon-circle {
        display: none;
    }
    
    .clumsy-section {
        width: 100%;
    }
    
    /* Hide folder images on mobile */
    .img, .folder-img {
        display: none;
    }
    
    .content-text {
        width: 100%;
        position: relative;
        background-color: rgba(255, 255, 255, 0.103);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        max-height: none;
        padding: 1.25rem;
        border-radius: 25px;
    }
    
    .content-text h2 {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .content-text p {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .content-text .last-child {
        margin-bottom: 1.5rem;
    }
    
    .clumsy-section {
        background-color: rgba(255, 255, 255, 0.103);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border-radius: 25px;
        padding: 0;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .supercontainer {
        padding: 3%;
    }
    
    .post-card {
        gap: 0; /* Remove gap since circle is hidden */
        margin-bottom: 25px;
    }
    
    /* Hide icon circle and outline completely on mobile */
    .icon-circle-outline,
    .icon-circle {
        display: none;
    }
    
    .clumsy-section {
        width: 100%;
    }
    
    /* Hide folder images on mobile */
    .img, .folder-img {
        display: none;
    }
    
    .content-text {
        width: 100%;
        position: relative;
        background-color: rgba(255, 255, 255, 0.103);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        max-height: none;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .content-text h2 {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 0.3rem;
    }
    
    .content-text p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .content-text .last-child {
        margin-bottom: 1rem;
    }
    
    .clumsy-section {
        background-color: rgba(255, 255, 255, 0.103);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        border-radius: 20px;
    }
    
    .btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .supercontainer {
        padding: 2%;
    }
    
    .post-card {
        gap: 0;
        margin-bottom: 20px;
    }
    
    .icon-circle-outline,
    .icon-circle {
        display: none;
    }
    
    .img, .folder-img {
        display: none;
    }
    
    .clumsy-section {
        width: 100%;
    }
    
    .content-text {
        padding: 0.75rem;
        border-radius: 15px;
    }
    
    .content-text h2 {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .content-text p {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* For devices that don't support hover (touch devices) */
@media (hover: none) and (pointer: coarse) {
    .folder-img {
        transform: translate(-50%, -60%); /* Slightly raised by default on touch devices */
    }
    
    .clumsy-section:hover .folder-img {
        transform: translate(-50%, -60%); /* No hover change on touch */
    }
    
    /* Add active state for touch */
    .clumsy-section:active .folder-img {
        transform: translate(-50%, -70%);
        transition: transform 0.2s ease-in-out;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .content-text {
        background-color: white;
        color: black;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        position: relative;
        border: 1px solid #ccc;
    }
    
    .btn {
        display: none;
    }
    
    .img, .folder-img {
        display: none;
    }
    
    .icon-circle-outline,
    .icon-circle {
        display: none;
    }
}