
/* ===============================
   VISHVA RIDE - CERTIFICATE CSS
===============================*/

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

html{
scroll-behavior:smooth;
}

body{
background:linear-gradient(135deg, rgba(255,153,51,.80),rgba(255,255,255,.30),
rgba(6,3,141,.20), rgba(255,255,255,.30), rgba(19,136,8,.80));
color:#000080;
}

/* ================= NAVBAR ================= */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 8%;
background:#fff;
box-shadow:0 2px 15px rgba(0,0,0,.08);
position:sticky;
top:0;
z-index:1000;
}

.logo{
display:flex;
flex-direction:column;
align-items: center;
justify-content: center;
}

.logo img{
   width:120px;
   height:auto;
   display:block;
   cursor: pointer;
}
/*
.logo h2{
font-size:32px;
font-weight:800;
color:#000080;
}*/

.logo p{
font-size:12px;
font-weight:bold;
letter-spacing:2px;
text-transform:uppercase;
color:#000080;
}

.menu-toggle{
    display:none;
}

.menu{
display:flex;
gap:35px;
list-style:none;
}

.menu a{
text-decoration:none;
font-weight:600;
color:#000080;
transition:.3s;
}

.menu a:hover,
.menu .active{
color:#ff671f;
}

.register-btn{
background:#ff671f;
color:white;
padding:13px 30px;
border-radius:30px;
text-decoration:none;
font-weight:600;
transition:.3s;
}

.register-btn:hover{
border: 2px solid #ff671f;
background:white;
color: #000080;
}

/* ================= HERO ================= */

.hero{

height:650px;

display:flex;

justify-content:center;

align-items:center;

text-align:center;

background:

linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
url("../image/03.png");

background-size:cover;

background-position:center;

}

.hero-content{

max-width:900px;

padding:20px;

}

.hero h1{

font-size:75px;

color:#ff671f;

margin-bottom:20px;

}

.hero p{

font-size:20px;

line-height:1.8;

color:#f2f2f2;

}

/* ==============Search Section =================*/

.certificate-section{

    width:100%;

    padding:70px 10%;

    background:#f7f7f7;

}

.certificate-card{

    width:100%;

    max-width:650px;

    margin:auto;

    background:#ffffff;

    padding:45px;

    border-radius:15px;

    box-shadow:0 5px 10px rgba(6,3,141,.80);

}

.certificate-card h2{

    text-align:center;

    color:#000080;

    margin-bottom:30px;

    font-size:34px;

}

.certificate-card label{

    display:block;

    margin-bottom:8px;

    font-size:18px;

    font-weight:600;

    color:#333;

}

.certificate-card input{

    width:100%;

    padding:15px;

    font-size:17px;

    margin-bottom:22px;

    border:2px solid #dddddd;

    border-radius:8px;

    outline:none;

    transition:.3s;

}

.certificate-card input:focus{

    border-color:#ff6600;

}

.certificate-card button{

    width:100%;

    padding:15px;

    border:none;

    background:#ff6600;

    color:#ffffff;

    font-size:18px;

    border-radius:50px;

    cursor:pointer;

    transition:.3s;

}

.certificate-card button:hover{
border: 2px solid #ff671f;
background:white;
color: #000080;
}



/* ===================Message =================*/

#message{

    margin-top:20px;

    text-align:center;

    font-size:17px;

    font-weight:bold;

    color:#d10000;

}



/* ==============Preview Section ==================*/

.preview-section{

    width:100%;

    padding:70px 10%;

    background:#ffffff;

}

.preview-section h2{

    text-align:center;

    color:#000080;

    font-size:36px;

    margin-bottom:35px;

}

.preview-box{

    width:auto;

    max-width:1000px;

    margin:auto;

    border:3px solid #ff6600;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.15);

}

.preview-box iframe{

    width:100%;

    height:700px;

    border:none;

}



/* Download Button */

#downloadBtn{

    display:block;

    margin:35px auto;

    padding:15px 45px;

    border:none;

    border-radius:8px;

    background:#28a745;

    color:#ffffff;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

#downloadBtn:hover{

    background:#208638;

}

/* ==========================================
      FOOTER
========================================== */

.footer{
    background:#fff;
    padding:25px 60px 10px;
    border-top:1px solid #ddd;
}

/* Top */
.footer-top{
    display:grid;
    grid-template-columns:1fr 2fr 1fr;
    align-items:flex-start;
    gap:5px;
}

/* LEFT */
.footer-left h3{
    color:#ff5b2e;
    margin-bottom:15px;
}

.footer-link{
    display:flex;
    gap:15px;
    list-style:none;
}

.footer-link a{
    text-decoration:none;
    font-weight:none;
    color:#000080;
    transition:.3s;
}

.footer-link a:hover{
    color:#ff671f;
    font-weight:bold;
}

/* CENTER */
.footer-center{
    text-align:center;
}
.brand-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-bottom:10px;
}
.brand-row h2{
    color:#ff5b2e;
    font-size:34px;
    margin:0;
}
.footer-center p{
    color: #000080;
}

/* Offline Icons */
.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:none;
}
.social-icons a{
    width:35px;
    height:35px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 5px 10px rgba(6,3,141,.80);
    transition:.3s;
}
.social-icons img{
    width:24px;
    height:24px;
    display: block;
}
.social-icons a:hover{
    transform:translateY(-5px);
}
/* RIGHT */
.footer-right{
    text-align:right;
}
.footer-right h3{
    color:#ff5b2e;
    margin-bottom:15px;
}
.footer-right p{
    color: #000080;
    margin:8px 0;
}
/* Bottom */
.footer-bottom{
    margin-top:20px;
    text-align:center;
}
.footer-bottom hr{
    border:none;
    border-top:1px solid #000080;
    margin-bottom:12px;
}
.footer-bottom p{
    color:#000080;
    font-size:14px;
}

/* ==========================================
        TABLET RESPONSIVE
========================================== */

@media screen and (max-width:992px)
{
    /* Navbar */
    .navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:15px 5%;
    position:relative;
}

.logo{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;
    flex:1;
}

.logo img{
    width:90px;      /* Bigger than mobile */
    height:auto;
}

/* Tablet Tagline */
.logo .tagline{
    display:block;
    width:100%;
    white-space:nowrap;
    text-align:center;
    font-size:22px;   /* Bigger than mobile (12px) */
    font-weight:700;
    letter-spacing:0.5px;
    line-height:1.2;
    text-transform:uppercase;
}

.logo .tagline .orange{
    color:#FF671F;
}

.logo .tagline .blue{
    color:#000080;
}

.logo .tagline .green{
    color:#138808;
}

/* Hamburger */
    .menu-toggle{
        display:block;
        font-size:36px;
        cursor:pointer;
    }

    .menu{
        position:absolute;
        top:80px;
        right:20px;
        width:150px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 10px 20px rgba(0,0,0,.15);
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        padding:10px 0;
        gap: 0;
        max-height:0;
        overflow:hidden;
        opacity:0;
        transition:.35s ease;
    }

    .menu.active{
        max-height:500px;
        opacity:1;
    }


.menu li{
    width:100%;
    margin:0;
    padding:0;
}

.menu a{
    display:block;
    width:100%;
    padding:4px 9px;   /* Reduced from 14px 20px */
    font-size:15px;
    line-height:1.2;
    text-align: center;
}

.register-btn{
    display:none;
}
    /* Menu */
    .menu{
        position:absolute;
        top:85px;
        right:20px;
        width:170px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 8px 20px rgba(0,0,0,.15);
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        padding:4px 0;
        max-height:0;
        overflow:hidden;
        opacity:0;
        transition:.35s ease;
    }

    .menu.active{
        max-height:500px;
        opacity:1;
    }

    .menu li{
        width:100%;
        margin:0;
        padding:0;
    }

    .menu a{
        display:block;
        width:100%;
        padding:4px 9px;   /* Reduced from 14px 20px */
        font-size:15px;
        line-height:1.2;
        text-align: center;
    }

    .register-btn{
        display:none;
    }

    /* ==========Hero============= */

    .hero{
        height:500px;
        background-position:75% center;
    }

    .hero h1{
        font-size:48px;
    }

    .hero p{
        font-size:18px;
        line-height:1.6;
    }

    /* ================= FOOTER tablet ================= */

    .footer{
        padding:25px 15px;
    }

    .footer-top{
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:25px;
    }

    /* Quick Links */

    .footer-left{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .footer-left h3{
        margin-bottom:15px;
    }

    /* Keep both rows horizontal */

    .footer-link{
        display:flex;
        justify-content:center;
        gap:15px;
        flex-wrap:nowrap;
        margin-bottom:8px;
    }

    .footer-link li{
        list-style:none;
    }

    .footer-link a{
        font-size:14px;
    }

    /* Center */

    .footer-center{
        width:100%;
    }

    .brand-row{
        flex-direction:column;
        gap:10px;
    }

    .brand-row h2{
        font-size:28px;
    }

    .social-icons{
        justify-content:center;
    }

    /* Contact */

    .footer-right{
        width:100%;
        text-align:center;
    }

    .footer-right p{
        font-size:15px;
    }

    /* Copyright */

    .footer-bottom{
        margin-top:20px;
    }

    .footer-bottom hr{
        margin-bottom:10px;
    }

    .footer-bottom p{
        font-size:13px;
    }
}

/* ==========================================
        MOBILE RESPONSIVE
========================================== */

@media (max-width:576px){

    .navbar{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:8px;
        padding:4px 12px;
        min-height:50px;
    }

    .logo{
        display:flex;
        flex-direction:row;
        align-items:center;
        gap:10px;
        flex:1;
    }

    .logo img{
        width:75px;
        height:auto;
    }

    .logo p{
        display:block;
        font-size:10px;
        font-weight:700;
        color:#000080;
        letter-spacing:1px;
        text-transform:uppercase;
        line-height:1.3;
        white-space:normal;
    }

    .menu-toggle{
        display:block;
        cursor:pointer;
        font-size:32px;
    }

    .menu{
        position:absolute;
        top:50px;
        right:20px;
        width:150px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 10px 20px rgba(0,0,0,.15);
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        padding:10px 0;
        gap: 0;
        max-height:0;
        overflow:hidden;
        opacity:0;
        transition:.35s ease;
    }

    .menu.active{
        max-height:500px;
        opacity:1;
    }

    /* Mobile Tricolour Tagline */

    .logo .tagline{
    display:block;
        width:100%;          /* Take available space */
        max-width:none;      /* Remove width restriction */
        white-space:nowrap;  /* Keep text on one line */
        text-align:center;
        font-size:14px;
        font-weight:bold;
        letter-spacing:0.3px;

        
        line-height:1.2;
        text-transform:uppercase;
    }

    .logo .tagline .orange{
        color:#FF671F;
        font-size:14px;
        font-weight:bold;
    }

    .logo .tagline .blue{
        color:#000080;
        font-size:14px; 
        font-weight:bold;
    }

    .logo .tagline .green{
        color:#15be06;
        font-size:14px;
        font-weight:bold;
    }


    /* Hero */

    .hero{
        height:600px;
        padding:30px 5%;
        background-size:cover;
        background-position:17% center;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:15px;
        line-height:1.6;
    }
    /* ================= SEARCH SECTION MOBILE ================= */
    .certificate-card h2{
        font-size:27px; 
    }
    .verify-btn{
        font-size:15px;
        font-weight:bold;
    }
    /* ================= FOOTER MOBILE ================= */

    .footer{
        padding:10px 5px;
    }

    .footer-top{
        display:flex;
        flex-direction:column;
        align-items:center;
        text-align:center;
        gap:25px;
    }

    /* Quick Links */

    .footer-left{
        width:100%;
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .footer-left h3{
        margin-bottom:1px;
        font-size:25px;
    }

    /* Keep both rows horizontal */

    .footer-link{
        display:flex;
        justify-content:center;
        gap:8px;
        flex-wrap:nowrap;
        margin-bottom:1px;
    }

    .footer-link li{
        list-style:none;
    }

    .footer-link a{
        font-size:14px;
    }

    /* Center */

    .footer-center{
        width:100%;
    }

    .brand-row{
        flex-direction:column;
        gap:10px;
    }

    .brand-row h2{
        font-size:30px;
        line-height:0.8;
    }
    .brand-row p{
        font-size:18px;
        line-height:0.8;
        margin-bottom:1px;
    }
    .social-icons{
        justify-content:center;
    }

    /* Contact */

    .footer-right{
        width:100%;
        text-align:center;
    }
    .footer-right h3{
        font-size:25px;
        line-height:0.8;
    }
    .footer-right p{
        font-size:18px;
        line-height:0.8;
    }

    /* Copyright */

    .footer-bottom{
        margin-top:5px;
    }

    .footer-bottom hr{
        margin-bottom:5px;
    }

    .footer-bottom p{
        font-size:18px;
    }

}