/* main container for all resource sections */
.resources-container {
    padding: 0 120px 60px;
}

/* collapsible resource sections styling */
.resource-section {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.resource-section:hover .section-header h2 {
    color: var(--primary-saturated);
}

/* section header with toggle functionality */
.section-header {
    background-color: var(--primary-light);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.5s;
}

.section-header:hover {
    background-color: rgba(137, 207, 232, 0.3);
}

.section-header h2 {
    font-family: var(--font-titles);
    font-size: 25px;
    margin: 0;
    color: var(--text-dark);
}

/* toggle arrow icon */
.chevron-icon {
    margin-right: 15px;
    color: var(--primary-saturated);
    font-size: 14px;
    transition: 0.5s;
}

/* section content area */
.section-content {
    box-sizing: border-box;
    padding: 25px;
    background-color: white;
    overflow: hidden;
    height: fit-content;
    transition: 1.5s;
}

/* grid layout for resource cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* individual resource card styling */
.resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6e6e6;
    border-radius: 25px;
    overflow: visible;
    height: 130px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fffffe;
    margin-top: 30px;
}

/* download overlay effect on hover */
.resource-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/download-icon.svg') center center no-repeat;
    background-size: 40px;
    background-color: #fcd9cc73;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}
.resource-card.pdf::after {
    background: url('../images/view-icon.svg') center center no-repeat;
    background-size: 40px;
    background-color: #fcd9cc73;
    opacity: 0;
}
.resource-card:hover::after {
    opacity: 1;
}

/* card hover effects */
.resource-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* file type icon styling */
.resource-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: transparent;
}

.resource-icon img {
    width: 50px;
    height: 50px;
}

/* resource card text content */
.resource-info {
    margin-top: 30px;
    padding: 10px 35px;
    text-align: center;
    overflow-y: auto;
}

.resource-info h3 {
    font-family: var(--font-text-secondary);
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.resource-info p {
    font-family: var(--font-text-secondary);
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
}


/* iframe styling */
#iframe-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    overflow: hidden;
}