/* ==================== ENHANCED MODERN STYLES FOR GOVERNMENT SCHEMES & GP MEMBERS ==================== */

/* Enhanced Government Schemes Section */
.schemes-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.scheme-modern-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(103, 58, 183, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.scheme-modern-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.05) 0%, rgba(126, 87, 194, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.scheme-modern-item:hover::before {
    opacity: 1;
}

.scheme-modern-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-main);
    box-shadow: 0 15px 40px rgba(103, 58, 183, 0.2);
}

.scheme-icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scheme-modern-item span {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.scheme-modern-item:hover span {
    color: var(--primary-main);
}

/* Enhanced Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card:hover::after {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(103, 58, 183, 0.15);
    border-color: var(--primary-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-main), transparent);
    border-radius: 2px;
}

/* Enhanced GP Member Cards */
.gp-member-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.gp-member-card-mini {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.gp-member-card-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-main), var(--primary-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.gp-member-card-mini:hover::before {
    transform: scaleY(1);
}

.gp-member-card-mini:hover {
    transform: translateX(5px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(103, 58, 183, 0.12);
}

.member-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.15);
    transition: all 0.3s ease;
}

.gp-member-card-mini:hover .member-photo {
    transform: scale(1.1);
    border-color: var(--primary-main);
}

.member-initials-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(103, 58, 183, 0.2);
    transition: all 0.3s ease;
}

.gp-member-card-mini:hover .member-initials-placeholder {
    transform: scale(1.1) rotate(5deg);
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    line-height: 1.3;
}

.member-designation {
    font-size: 0.85rem;
    color: var(--primary-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View All Link Enhancement */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-main);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.05), rgba(126, 87, 194, 0.05));
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.view-all-link:hover {
    background: var(--primary-main);
    color: white;
    border-color: var(--primary-main);
    transform: translateX(5px);
}

/* Enhanced Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-light));
    border-radius: 2px;
}

/* Scheme Detail Box Enhancement */
.scheme-detail-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 2px solid #f5f5f5;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.scheme-detail-box:hover {
    box-shadow: 0 15px 50px rgba(103, 58, 183, 0.1);
    border-color: var(--primary-light);
}

.detail-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.detail-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-main), var(--primary-light));
    border-radius: 2px;
}

.detail-list {
    list-style: none;
    padding-left: 0;
}

.detail-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.detail-list li:hover {
    padding-left: 2.5rem;
    color: var(--text-main);
}

.numbered-list {
    counter-reset: item;
}

.numbered-list li::before {
    content: counter(item);
    counter-increment: item;
}

/* Contact Grid Enhancement */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    border: 2px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 30px rgba(103, 58, 183, 0.12);
}

.contact-icon-wrapper {
    flex-shrink: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.contact-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-main);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.contact-mobile {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Apply animations to sections */
.dashboard-card {
    animation: fadeInUp 0.6s ease-out;
}

.scheme-modern-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.scheme-modern-item:nth-child(1) {
    animation-delay: 0.1s;
}

.scheme-modern-item:nth-child(2) {
    animation-delay: 0.2s;
}

.scheme-modern-item:nth-child(3) {
    animation-delay: 0.3s;
}

.scheme-modern-item:nth-child(4) {
    animation-delay: 0.4s;
}

.gp-member-card-mini {
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.gp-member-card-mini:nth-child(1) {
    animation-delay: 0.1s;
}

.gp-member-card-mini:nth-child(2) {
    animation-delay: 0.2s;
}

.gp-member-card-mini:nth-child(3) {
    animation-delay: 0.3s;
}

.gp-member-card-mini:nth-child(4) {
    animation-delay: 0.4s;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .schemes-modern-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .scheme-modern-item {
        padding: 1.5rem 1rem;
    }

    .scheme-icon-box {
        font-size: 2.5rem;
    }

    .gp-member-grid-mini {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* Modern Premium Slider Enhancements */
.hero-split-container {
    align-items: stretch !important;
    /* Forces slider and text panel to stretch equally */
}

.hero-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
}

.hero-slider-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(103, 58, 183, 0.15);
    background: #e9e9e9;
    width: 100%;
    min-height: 400px;
    height: 100%;
    /* Stretch full height of container */
    align-self: stretch;
    display: flex;
    border: 6px solid white;
}

@media (max-width: 1024px) {
    .hero-slider-panel {
        min-height: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider-panel {
        min-height: 250px;
        height: 250px;
    }
}

.slideshow {
    position: absolute;
    /* Take full space of the panel */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    /* Inner radius matching the border */
}

.slideshow-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* cover fills frame fully — no black bars */
    object-position: center center !important;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1);
    z-index: 1;
}

.slideshow-image.active {
    opacity: 1 !important;
    z-index: 2 !important;
    transform: scale(1.02) !important;
    /* Gentle soft zoom covering entire box */
}

/* Slider Overlay Information */
.slider-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    z-index: 10;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.hero-slider-panel:hover .slider-overlay {
    transform: translateY(0);
    opacity: 1;
}

.slider-overlay h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 40%;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    height: 20px;
    border-radius: 10px;
}

/* Next/Prev buttons if needed */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slider-panel:hover .slider-nav-btn {
    opacity: 1;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}