/* Special Cards Styles */
.dgm-special-cards-area {
    background: #f8f9fa !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 10 !important;
    min-height: 400px !important;
}

.dgm-special-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    z-index: 100;
    background: #ffffff;
}
.dgm-special-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 101;
}

.card-content {
    position: relative;
    z-index: 102;
    text-align: center;
    color: white;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Minister Card Styles */
.card-minister {
    height: 400px !important;
}

.card-minister .card-background {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
}

.card-minister .card-background::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 30, 60, 0.95) 100%);
}

.card-minister .ministry-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 103;
}

.card-minister .ministry-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card-minister:hover .ministry-logo img {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card-minister .card-content {
    justify-content: flex-end;
    padding: 0;
}

.card-minister .minister-info {
    width: 100%;
    padding: 0;
    margin: 0;
}

.card-minister .info-box {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 30px 25px;
    border-top: 3px solid #d4af37;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.minister-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.minister-title {
    font-size: 15px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.2px;
    line-height: 1.5;
    margin: 0;
}

/* Representatives Card Styles */
.card-representatives {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-representatives .card-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-representatives .card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    animation: pulse 2s infinite;
}

.card-representatives .card-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-representatives .card-description {
    font-size: 16px;
    line-height: 1.6;
    color: white;
    margin-bottom: 25px;
    opacity: 0.9;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    color: white;
}

/* Account Card Styles */
.card-account {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card-account .card-background {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.card-account .card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    animation: bounce 2s infinite;
}

.card-account .card-title {
        color: white;

    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.account-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.account-info p {
        color: white;

    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.account-info strong {
    color: #fff;
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .dgm-special-card {
        height: 300px;
        margin-bottom: 30px;
    }
    
    .minister-name {
        font-size: 20px;
    }
    
    .card-representatives .card-title,
    .card-account .card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .dgm-special-cards-area {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .dgm-special-card {
        height: 280px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .minister-photo {
        width: 100px;
        height: 100px;
    }
    
    .minister-name {
        font-size: 18px;
    }
    
    .minister-title {
        font-size: 14px;
    }
    
    .card-representatives .card-title,
    .card-account .card-title {
        font-size: 20px;
    }
    
    .account-info {
        padding: 15px;
    }
}

/* Force display - fix for cards disappearing */
.dgm-special-cards-area {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dgm-special-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.card-background {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}