.pagenotfound {
    text-align: center;
    color: #fff;
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.pagenotfound .img {
    margin-bottom: 30px;
}

.pagenotfound .img img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.pagenotfound h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary_color);
    margin: 30px 0 20px 0;
    text-transform: none;
    letter-spacing: 0;
}

.pagenotfound p {
    font-size: 18px;
    font-weight: 400;
    color: #cccccc;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.pagenotfound .theme-btn {
    background: var(--primary_color);
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 58px 10px 58px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 30px;
    text-decoration: none;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    transition: .3s;
    cursor: pointer;
    border: 2px solid var(--primary_color);
}

.pagenotfound .theme-btn i {
    font-size: 24px;
    margin-right: 10px;
    display: block;
    margin-bottom: 3px;
}

.pagenotfound .theme-btn:hover {
    background: none;
    color: var(--primary_color);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(40, 233, 140, 0.3);
}

.pagenotfound .theme-btn:hover .ph {
    color: var(--primary_color);
}

/* Ensure the main container takes full height */
.drake-main.center {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#smooth-wrapper {
    height: 100%;
}

#smooth-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drake-main.center {
        height: 100vh;
        min-height: 100vh;
    }
    
    .pagenotfound {
        padding: 30px 15px;
        min-height: auto;
    }
    
    .pagenotfound .img img {
        max-width: 250px;
    }
    
    .pagenotfound h1 {
        font-size: 36px;
        margin: 20px 0 15px 0;
    }
    
    .pagenotfound p {
        font-size: 16px;
        margin: 0 0 25px 0;
    }
    
    .pagenotfound .theme-btn {
        padding: 12px 40px 12px 40px;
        font-size: 16px;
        margin-top: 25px;
    }
    
    .pagenotfound .theme-btn i {
        font-size: 20px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .drake-main.center {
        height: 100vh;
        min-height: 100vh;
    }
    
    .pagenotfound {
        padding: 20px 10px;
        min-height: auto;
    }
    
    .pagenotfound .img img {
        max-width: 200px;
    }
    
    .pagenotfound h1 {
        font-size: 28px;
        margin: 15px 0 10px 0;
    }
    
    .pagenotfound p {
        font-size: 14px;
        margin: 0 0 20px 0;
    }
    
    .pagenotfound .theme-btn {
        padding: 10px 30px 10px 30px;
        font-size: 14px;
        margin-top: 20px;
    }
    
    .pagenotfound .theme-btn i {
        font-size: 18px;
        margin-right: 6px;
    }
}

@media (max-width: 360px) {
    .drake-main.center {
        height: 100vh;
        min-height: 100vh;
    }
    
    .pagenotfound .img img {
        max-width: 180px;
    }
    
    .pagenotfound h1 {
        font-size: 24px;
    }
    
    .pagenotfound p {
        font-size: 13px;
    }
    
    .pagenotfound .theme-btn {
        padding: 8px 25px 8px 25px;
        font-size: 13px;
    }
}