/* PDF Gallery Styles */
.pdf-gallery-section {
    background: linear-gradient(135deg, #f29ab9 0%, #545378 60%);
    padding: 80px 0;
}

.pdf-topic-section {
    margin-bottom: 60px;
}

.section-titles {
    font-size: 28px;
    color: #545378; /* Primary color */
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid #f29ab9;
}


.pdf-item {
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.pdf-item:hover {
    transform: translateY(-10px);
}

.pdf-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background: linear-gradient(145deg, rgba(242,154,185,0.15), rgba(84,83,120,0.25));
    /* padding: 18px 12px; */
    height: 230px;  /* Slightly taller card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-top-width: 3px;
    transform-origin: center bottom;
}

.pdf-img {
     /* Increased from 70px to 100px */
    margin-bottom: 12px;
    transition: all 0.4s ease;
    /* width: 100%; */
    /* max-width: 120px; */
    height: auto;
    object-fit: cover; /* Added max-height for better control */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
    border-radius: 6px;
}

.pdf-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f29ab9; /* Accent color */
    color: white;
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    font-weight: 500;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pdf-item:hover .pdf-overlay {
    transform: translateY(0);
}

.pdf-item:hover .pdf-img {
    transform: scale(1.1);
}

.pdf-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #545378;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdf-link {
    text-decoration: none;
    color: #545378; /* Primary color */
    display: block;
    height: 100%;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    color: #f29ab9; /* Accent color on hover */
    text-decoration: none;
}

/* Hover effect for the container */
.pdf-item:hover .pdf-img-container {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);

    transform: translateY(-6px) rotateX(2deg);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .pdf-gallery-section {
        padding: 60px 0;
    }
    
    .section-titles {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .pdf-img-container {
        height: 200px;  /* Increased from 180px */
        padding: 15px 10px;
    }
    
    .pdf-img {
        max-width: 80px;  /* Increased from 60px */
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .pdf-gallery-section {
        padding: 40px 0;
    }
    
    .section-titles {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .hello-text h3 {
    color: #454b72; /* Primary color */
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.hello-text h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #f29ab9; /* Accent color */
}

/* New style for info-text */
.hello-text .info-text {
    color: #454b72;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    padding: 8px 0;
    position: relative;
    display: inline-block;
}

.hello-text .info-text:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #f29ab9;
    transform: scaleX(0.7);
    transform-origin: center;
}
    
    .pdf-img-container {
        height: 180px;  /* Increased from 160px */
        max-width: 280px;
        margin: 0 auto;
    }
    
    .pdf-img {
        max-width: 70px;  /* Added for mobile */
    }
    
    .pdf-title {
        font-size: 13px;
    }
}

/* ===================== END: PDF Gallery Styles ===================== */
