/* Partnership Programs Section */
.partners-program-section {
    padding: 100px 0;
    background: linear-gradient(360deg, #193B7B 0%, #202020 100%); /* Updated gradient */
    color: #fff;
    position: relative;
    z-index: 10;
    overflow: hidden; /* Prevent horizontal scroll */
}

.partners-program-section {
    padding-left: clamp(16px, 5vw, 40px);
    padding-right: clamp(16px, 5vw, 40px);
}

.partners-program-section .container {
    padding-left: 0;
    padding-right: 0;
}

/* Header */
.pp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Reset to start for proper alignment */
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .pp-header {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
}

.pp-header-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pp-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 5.65%, #C8DBFF 92.34%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #fff;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .pp-title {
        font-size: 32px;
    }
}

.pp-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #F6F6F6;
    max-width: 600px; /* Ensure desc doesn't stretch too wide if container grows */
}

/* Header Button */
.pp-header-btn {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    background: transparent;
    padding: 0;
    align-self: flex-start; /* Align button to the top to match title baseline */
    margin-top: 10px; /* Fine-tune alignment with title cap height */
}

.pp-btn-text {
    background: #FFFD00;
    color: #13519C; /* Updated color */
    padding: 0 30px; /* Reset padding */
    height: 50px; /* Fixed height to match icon */
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: background 0.3s ease;
    margin-right: -10px;
    position: relative;
    z-index: 1;
    display: flex; /* Flex to center text */
    align-items: center;
    white-space: nowrap; /* Prevent wrapping */
}

.pp-btn-icon {
    width: 50px;
    height: 50px;
    background: #FFFD00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease; /* Removed background transition */
    position: relative;
    z-index: 2;
    margin-left: 10px; /* Gap restored */
    flex-shrink: 0;
}

.pp-header-btn:hover .pp-btn-text,
.pp-header-btn:hover .pp-btn-icon {
    /* No background change */
}

.pp-header-btn:hover .pp-btn-icon {
    transform: rotate(-45deg); /* Points to top-right */
}

@media (hover: none), (pointer: coarse) {
    .pp-header-btn:hover .pp-btn-icon {
        transform: none;
    }
}

/* Grid */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed to 2 columns for wider cards */
    gap: 30px; /* Increased gap */
}

@media (max-width: 1200px) {
    .pp-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.pp-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align to top */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
    backdrop-filter: blur(8px); /* Added blur */
    cursor: pointer;
}

@media (max-width: 480px) {
    .pp-card {
        flex-direction: column-reverse; /* Stack vertically, image on top */
        gap: 20px;
    }
}

.pp-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top */
    width: 55%; /* Reduced width slightly to give image space */
    padding-right: 30px;
    gap: 20px; /* Added gap between elements */
}

@media (max-width: 480px) {
    .pp-card-content {
        width: 100%;
        padding-right: 0;
    }
}

.pp-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.pp-card-title {
    font-size: 24px; /* Increased font size */
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    transition: color 0.3s ease;
}

@media (max-width: 480px) {
    .pp-card-title {
        font-size: 20px;
    }
}

.pp-card-tag {
    display: inline-block;
    padding: 8px 20px; /* Larger padding */
    border: 1px solid #FFFD00;
    border-radius: 50px;
    font-size: 14px;
    color: #FFFD00;
    text-transform: none; /* Removed uppercase based on look */
    letter-spacing: normal;
    transition: all 0.3s ease;
}

.pp-card-desc {
    font-size: 15px; /* Increased from 14px */
    line-height: 1.6;
    color: #F6F6F6;
    margin-top: auto;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image Side */
.pp-card-image {
    width: 260px; /* Increased size */
    height: 260px; /* Square */
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-left: auto;
}

@media (max-width: 480px) {
    .pp-card-image {
        width: 100%;
        height: 200px; /* Reduced height for mobile */
        margin-left: 0;
    }
}

.pp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pp-card-arrow {
    display: none;
}

.pp-card-arrow svg {
    width: 20px; /* Reduced icon size */
    height: 20px; /* Reduced icon size */
}

/* Hover State */
.pp-card:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-5px);
}

.pp-card:hover .pp-card-title {
    color: #131B2C;
}

.pp-card:hover .pp-card-tag {
    border-color: #13519C;
    color: #13519C;
}

.pp-card:hover .pp-card-desc {
    color: #555;
}

.pp-card:hover .pp-card-image img {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .pp-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .pp-card:hover .pp-card-title {
        color: #fff;
    }

    .pp-card:hover .pp-card-tag {
        border-color: #FFFD00;
        color: #FFFD00;
    }

    .pp-card:hover .pp-card-desc {
        color: #F6F6F6;
    }

    .pp-card:hover .pp-card-image img {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-card {
        flex-direction: column; /* Text top, Image bottom */
        align-items: flex-start;
        gap: 24px;
    }

    .pp-card-content {
        width: 100%;
        padding-right: 0;
    }

    .pp-card-image {
        width: 100%;
        height: 240px; /* Adjust height for tablet */
        margin-left: 0;
        margin-top: auto; /* Push to bottom if needed */
    }
}

@media (max-width: 768px) {
    .partners-program-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .pp-header {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .pp-title {
        font-size: 32px; /* Consistent with other sections */
    }

    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-card {
        flex-direction: column-reverse; /* Stack vertically earlier */
        min-height: auto;
        gap: 24px;
    }

    .pp-card-content {
        width: 100%;
        padding-right: 0;
    }

    .pp-card-image {
        width: 100%;
        height: 240px; /* Good height for tablet/mobile */
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .pp-card-image {
        height: 200px; /* Slightly shorter for phones */
    }
    
    .pp-card-title {
        font-size: 20px;
    }
}
