* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
}


/* HAMBURGER (desktop hidden) */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    header {
        flex-wrap: nowrap;
        position: relative;
        display: flex;
        flex-direction: row-reverse!important;
            padding: 15px 8px!important;;
    }

    /* show hamburger */
    .menu-toggle {
        display: block;
    }

    /* NAV becomes dropdown */
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #083c20;
        display: none;
        padding: 15px 0;
        z-index: 999;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    nav ul li {
        padding: 8px 0;
    }

    /* AUTH STACK */
    .auth {
        display: none; /* hide desktop buttons */
    }

    .logo span {
        display: none;
    }
}




/* HEADER */
header {
    background: #083c20;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo img {
    /*height: 45px;*/
           width: 60px;
        /* must be equal for circle */
        border-radius: 50%;
        /* makes it circle */
        object-fit: cover;
        background: #fff;
        /* optional (looks good on dark header) */
        padding: 2px;
        /* optional spacing */
}

.logo span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .logo span {
        display: block;
        /* only logo on mobile */
    }
}
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.auth a {
    background: #1e90ff;
    color: #fff;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 10px;
}
.auth .contribute {
    background: #c11d1d!important;
}

/* HERO */
.hero {
    padding: 60px 20px;
    /*background: linear-gradient(to right, #74b8ff, #09e3bb);*/
        /*background: linear-gradient(to right, #1b522b, #073b1f);*/
        background-color: #d4d5d4;
    background-image: radial-gradient(#3e4843 1px, #03351c 1px);
    background-size: 20px 20px;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
        text-align: justify;
    max-width: 95%;
    margin: auto;
    font-size: 18px;
}

.about_heading{
        text-align: left;
    max-width: 95%;
    margin: auto;
}
.home_about{
        margin-top: 20px;
}
/* SECTIONS */
.section {
    padding: 50px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #0a3d62;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card p{
        text-align: justify!important;
}

/* FOOTER */
footer {
    background: #083c20;
    color: #fff;
    text-align: center;
    padding: 10px;
    /*margin-top: 40px;*/
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .cards {
        display: contents;
    }
    .card{
        margin: 15px;
    }
    .contact-section-home {
        max-width: 100%!important;
        padding: 50px 1px!important;
    }
    .about_heading {
    text-align: center;
    max-width: 95%;
    font-size: 20px;
    margin: auto;
}
.hero h1 {
    font-size: 24px;
    margin-bottom: 15px;
}
}


/* AUTH SECTION */
.auth-section {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    flex-direction: column;
}

/* AUTH BOX */
.auth-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* TABS */
.tabs {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
}

.tab-btn{
        width: 48%!important;
        
}

.tabs button {
    /* flex: 1; */
    padding: 12px;
    border: none;
    background: #857f7f;
    cursor: pointer;
    font-size: 16px;
}

.tabs button.active {
    background: #0a3d62;
    color: #fff;
}

/* FORM */
.form {
    display: none;
}

.form.active {
    display: block;
}

.form h2 {
    text-align: center;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0!important;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button.submit {
    width: 100%;
    padding: 12px;
    background: #0a3d62;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.overview-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.overview-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    min-width: 220px;
    flex: 1;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #555;
}

.overview-card .count {
    font-size: 36px;
    font-weight: bold;
}

/* Card Colors */
.overview-card.total {
    border-top: 5px solid #0984e3;
}

.overview-card.progressss {
    border-top: 5px solid #f39c12;
}

.overview-card.completed {
    border-top: 5px solid #27ae60;
}

/* Responsive */
@media (max-width: 768px) {
    .overview-card {
        max-width: 100%;
    }
}

.text-center{
    text-align: center;
    padding: 10px;
}

.error{
    color: red;
}

.userinfo{
        background: #0a3d62!important;
    color: yellow!important;
}
.logoutbtn{
   
     background: #0a3d62!important;
    color: #ff0000!important;
}

/* FORM SECTION */
.form-section {
    min-height: calc(100vh - 140px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-container {
    background: #fff;
    width: 100%;
    max-width: 900px; /* Increased width for CKEditor */
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #0a3d62;
}

/* GRID LAYOUT */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* FORM ELEMENTS */
.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 6px;
}

select, input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

textarea {
    min-height: 180px; /* CKEditor friendly */
}

/* FULL WIDTH FIELDS */
.full-width {
    grid-column: 1 / -1;
}

input[type="file"] {
    padding: 8px;
}

/* BUTTON */
button {
    width: 100%;
    padding: 14px;
    background: #0a3d62;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.button {
    width: 100%;
    padding: 5px;
    background: #0a3d62;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}
button:hover {
    background: #082f4b;
}

/* FOOTER */
footer {
    background: #083c20;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.ck-editor__editable {
    min-height: 250px;   /* change this value */
}
.mandatory{
    color: red;
}



#loading-overlay {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    animation: fadeIn 0.3s ease-in-out;
}

.loader-box {
    background: #fff;
    padding: 25px 40px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

  .progress-container {
    width: 250px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.1s linear;
}



/* DASHBOARD LAYOUT */
.dashboard {
    display: flex;
    min-height: calc(100vh - 140px);
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: #0a3d62;
    padding: 20px;
}

.sidebar h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar button {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 15px;
    border-radius: 5px;
}

.sidebar button:hover,
.sidebar button.active {
    background: #1e90ff;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #0a3d62;
    color: #fff;
}

.password-wrapper {
    display: flex;
    justify-content: center;
}

.form-box {
    width: 38%;
    /*max-width: 350px; /* Reduced width */
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .sidebar button {
        white-space: nowrap;
        text-align: center;
    }
    .form-box {
        width: 100%;
        /*max-width: 350px; /* Reduced width */
        background: #fff;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    .form-box {
    width: 100%;
    /*max-width: 350px; /* Reduced width */
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
}

.contact-section {
    min-height: calc(100vh - 160px);
    /* header + footer space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f5f7fa;
}

.contact-card {
    background: #fff;
    max-width: 480px;
    width: 100%;
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #000;
}

.contact-card p {
    font-size: 15px;
    margin-bottom: 12px;
    color: #333;
}

.contact-card .highlight {
    margin-top: 15px;
}

.contact-card a {
    color: #0a58ca;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Mobile Friendly */
@media (max-width: 480px) {
    .contact-card {
        padding: 25px;
    }

    .contact-card h2 {
        font-size: 20px;
    }
}


.contact-section-home {
  padding: 50px 20px;
  background: #f9f9f9;
  max-width: 80%;
    background-color: #d4d5d4;
    background-image: radial-gradient(#abafac 1px, #ffffff 1px);
    background-size: 20px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

/* Info Box */
.contact-info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Form */
.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #333;
}

/* Map */
.map-box {
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.declaration{
    display: flex!important;
}
.declaration_details{
    margin-left: 10px;
}
.register-section{
    background: #dddfde;
}