@media (max-width: 768px) {
    /* Body */
    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }


    .container {
        display: flex;
        flex-direction: column; 
        flex: 1; 
        height: auto;
        padding: 10px 20px; 
        background: transparent;
        align-items: center;
        justify-content: flex-start; 
    }

       /* Logo */
    .left {
        width: 100%;
        background: transparent;
        padding: 10px 0 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .main-logo{
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
        margin-top: 0;
    }

    .overlay {
        position: static;
    }


    /*Login/Signup*/
   .right {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     margin-top: -40px; 
    margin-bottom: 30px;
    flex: none;
    box-sizing: border-box;
}

    .right h2 {
        color: #303870;
        font-size: 28px; 
        margin-top: 0;
        margin-bottom: 5px;
        text-align: center;
        font-weight: 800;
    }

    .right p {
        color: #666;
        font-size: 14px;
        margin-bottom: 25px;
        text-align: center;
    }

    /*Forms & Inputs*/
 /* Forms & Inputs - Merged Mobile Version */
    .login-form, 
    .signupstart-form, 
    .signup-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* Bformsss */
    .login-form input, 
    .signupstart-form input, 
    .signup-form input,
    .signup-form select {
        width: 100% !important; 
        margin: 8px 0; 
        padding: 14px; 
        background-color: #f9f9f9; 
        border: 1px solid #ddd; 
        box-sizing: border-box; 
        border-radius: 12px; 
        font-size: 16px; 
        outline: none;
    }
	

.signup-form input[type="date"]{
    max-width: 160px;
    width: 160px !important;
	min-height:1.2em;
}

    .login-form .password-wrapper, 
    .signupstart-form .password-wrapper {
        width: 100%; 
        position: relative; 
        margin: 8px 0; 
    }

    .login-form .password-wrapper input, 
    .signupstart-form .password-wrapper input {
        margin: 0 !important; 
        padding-right: 45px !important; 
        border: 1px solid #ddd !important; 
    }

    /* EyeCON*/
    .login-form .password-wrapper i, 
    .signupstart-form .password-wrapper i {
        position: absolute; 
        right: 15px; 
        top: 50%; 
        transform: translateY(-50%); 
        z-index: 10; 
        cursor: pointer; 
        font-size: 18px; 
        color: #777; 
    }

    /*household radioboton*/
    .household-choice {
        margin-top: 15px;
        width: 100%;
    }

    .household-choice .login-text {
        margin-bottom: 12px !important;
        color: #666 !important; 
        font-size: 14px;
    }

    .choice-row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 30px; 
        width: 100%;
        margin-bottom: 10px;
    }

    .choice-row label {
        display: flex;
        align-items: center;
        gap: 8px; 
        cursor: pointer;
        font-size: 16px;
        color: #333;
        width: auto !important;
    }

    .choice-row input[type="radio"] {
        width: 20px !important; 
        height: 20px !important;
        margin: 0 !important;
        cursor: pointer;
    }

    .choice-row p {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Buttons */
    .btn.login, .btn.signup, .btn.login.full {
        width: 100% !important;
        background-color: #303870; 
        color: white;
        border-radius: 12px;
        height: 55px; 
        margin-top: 15px;
        border: none;
        font-weight: bold;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .btn.login:active {
        background-color: #1e244d;
        transform: scale(0.98);
    }

    .login-text {
        text-align: center;
        font-size: 14px;
        margin-top: 20px;
    }

    .login-text a {
        color: #5c6bd6;
        font-weight: bold;
        text-decoration: none;
    }

    /*backbutton*/
    .back-btn {
        position: fixed; 
        top: 15px; 
        left: 15px;
        color: #303870; 
        font-size: 22px; 
        text-decoration: none;
        font-weight: bold;
        z-index: 2000; 
        background: rgba(255,255,255,0.8);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /*footer*/
    footer {
        margin-top: auto; 
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-left, .footer-center, .footer-right {
        align-items: center;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Hide Desktop Elements */
    .nav, .navleft, .navright {
        display: none;
    }

    /* Stats & User */
    .stats-container, .user {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .box {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
    
    /*reports*/
    /*reports*/
    .report-main-content {
        padding: 40px 20px;
    }
	.report-container{
        padding: 15px;
    }
    .form-body {
        flex-direction: column;
        gap: 20px;
    }

    .form-left, .form-right {
        width: 100%;
    }

    .report-container h1 {
        font-size: 28px;
    }

    .main-title {
        font-size: 28px;
    }

    .national-hotline h2 {
        font-size: 40px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 400px;
    }

/*home*/
/*hello user*/
.user {
     background-image: linear-gradient(#303870, #303870);
        flex-direction: column;  
        align-items: center;      
        justify-content: center;  
        padding: 40px 20px;       
        min-height: 200px;        
        text-align: center;    
         position: relative;
    overflow: visible;   
    
    }

.user::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -45px;  
    
    width: 140%;
    height: 80px;

    background: inherit;
    border-radius: 90%;
    z-index: 3;      
    transform: translateX(-50%);
}


    .user-left {
        max-width: 100%;          
        transform: translateY(20px); 
    }

    .user-left h1 {
        font-size: 40px;          
        margin-bottom: 10px;
    }

    .user-left p {
        font-size: 15px;          
        line-height: 1.4;
    }


/*slideshow*/
.user-right {
       display: none;
    }
    
/*concerns*/

.concerns {
    margin-top: -20px;
}

.concerns h2 { 
    margin-top: 10px;
  font-size: 35px !important;
    
}
.concerns > p { 
    font-size: 15px;
}
	.cards {
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center; 
    gap: 30px;
        width: auto;

    padding: 20px;          
    box-sizing: border-box;
}

.cards > div {
    width: 100%;            
    max-width: 700px;      
    height: auto;          
    box-sizing: border-box; 
}

.card h3 { 
     font-size: 30px; 
     font-weight: bold;
     }
.card p { 
    color: #333; 
    font-size: 12px; 
    
}

/*FEATURES*/
    .main-container {
        grid-template-columns: 1fr; 
        padding: 0 20px;
        margin: 20px auto;
    }
    
    .mainbox {
        width: 100%;
        box-sizing: border-box;
    }

/*statistics*/
 .box {
        width: 100%; 
        min-width: unset;
        max-width: 320px; 
    }

    .cards {
        gap: 20px;
    }
    .card {
        width: 100%;
        max-width: 350px;
    }
.statistics {
        padding: 40px 20px;
    }

    .stats-container {
        flex-direction: column; 
        align-items: center;
        gap: 20px;
    }
.statistics h2 {
    font-size: 34px; 
}

.statistics small {
     font-size: 12px;
    margin-bottom: 30px; 
}
}


/* homenav */
@media (max-width: 1050px) {
    .homeheader-nav {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        padding: 10px 15px;
        min-height: 60px;
    }

    .homeheader-icons, .hamburger {
        position: absolute;
        top: 55%;
        transform: translateY(-50%);

    }
    
    .homeheader-icons {
        display: flex !important;
        top: 50%;
        right: 30px; 
        z-index: 2001;
    }

    #bellIcon {
        font-size: 20px !important; 
        font-weight: 400; 
        color: #303870;
        
    }

    .homeheader-icons .profile-container {
        display: none !important;
    }
   
    .hamburger {
        display: block !important;
        right: 15px;
        font-size: 24px;
        z-index: 2002;
    }

    .homeheader-logo img {
        height: 28px;
    }
  
    .notification-dropdown {
        width: 280px;
        right: -40px; 
        top: 40px;
    }

    .homeheader-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
     .mobile-only-profile {
        display: flex !important;
     }
     
        .homeheader-links.mobile-active { 
        display: flex;
     }
}

@media (max-width: 980px){
     .left {
        width: 100%;
        background: transparent;
        padding: 5px 0 5px 0; 
        display: flex;
        justify-content: center; 
        align-items: center;
        flex-wrap: wrap; 
    }
  .slider-container {
            width: 40%;
            font-size: 30px;
        }

        .user-card h2 {
            font-size: 25px;
        }

         .user-card p {
            font-size: 12px;
        }
}

@media (max-width: 1380px) {

        .slider-container {
            width: 50%;
            font-size: 30px;
        }

        .vulne {
            width: 100%;
            max-width: 650px;  
            height: auto;      
        }

            .sdgimg {
        width: 120px; 
        height: auto;
    }
}

@media (max-width: 1420px ) {
    /*concerns*/
    .concerns h2 { 
        font-size: 40px; 
        
    }
    .concerns > p { 
        font-size: 15px;
    }

    .cards {
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;   
    }

    .card {
        flex: 1;
        max-width: 500px;
    }



    .cards > div {
        width: 100%;            
        max-width: 700px;      
        height: auto;          
        box-sizing: border-box; 
    }

    .card h3 { 
        font-size: 30px; 
        font-weight: bold;
        }
    .card p { 
        color: #333; 
        font-size: 12px; 
        
    }
}