/* ============================================
   GLOBAL STYLES
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f5 100%);
}

/* Loading Overlay */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.95) url("../img/loader.gif") center no-repeat;
    backdrop-filter: blur(5px);
}

body.loading {
    overflow: hidden;
}

body.loading .overlay {
    display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-bg {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #006838;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   SHARED COMPONENTS
   ============================================ */

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #006838 0%, #00a854 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom {
    background: linear-gradient(135deg, #006838 0%, #00a854 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 104, 56, 0.3);
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.4);
    color: #fff;
}

.footer-cl {
    background: linear-gradient(135deg, #083042 0%, #006838 100%);
    padding: 60px 0;
    color: #fff;
    border-radius: 30px 30px 0 0;
    margin-top: 80px;
}

.footer-cl p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-cl h3 {
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.9;
}

.footer-cl a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-cl a:hover {
    opacity: 0.8;
}

/* ============================================
   DEFAULT PAGE STYLES
   ============================================ */

.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 104, 56, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hold-hero {
    position: relative;
    z-index: 1;
}

.hold-hero h1 {
    animation: fadeInUp 0.8s ease;
    margin-bottom: 30px;
}

.hold-hero p {
    animation: fadeInUp 1s ease;
    line-height: 1.8;
}

.hero-img {
    animation: float 3s ease-in-out infinite;
}

.support {
    padding: 80px 0;
    background: #fff;
    border-radius: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.support h1 {
    color: #006838;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.support h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #006838, #00a854);
    border-radius: 2px;
}

.support p {
    line-height: 1.9;
    color: #555;
}

.mission {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(135deg, #006838 0%, #004d28 100%);
    box-shadow: 0 20px 60px rgba(0, 104, 56, 0.3);
    border-radius: 30px;
    margin: 40px 0;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.mission h1,
.mission p {
    position: relative;
    z-index: 1;
}

.mission h1 {
    font-weight: 700;
    margin-bottom: 30px;
}

.vision {
    padding: 80px 0;
}

.vision h1 {
    margin-bottom: 30px;
    font-weight: 700;
}

.values-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.values-card ul li {
    font-size: 18px;
    color: #555;
    transition: transform 0.3s ease;
}

.values-card ul li:hover {
    transform: translateX(10px);
    color: #006838;
}

/* ============================================
   GRANTS PAGE STYLES
   ============================================ */

.hero-section-grants {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section-grants::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 104, 56, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.grants {
    color: #006838;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-section-grants p {
    line-height: 1.9;
    color: #555;
    animation: fadeInUp 1s ease;
}

.grants-section {
    padding: 80px 0;
}

.pitch {
    color: #006838;
    font-weight: 700;
    margin-bottom: 20px;
}

.pitch-par,
.pitch-par2 {
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border-left: 4px solid #006838;
}

.info-card h3 {
    color: #006838;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Form Styles */
.form-bg {
    background: #fff;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 50px;
    margin: 40px 0;
    transition: transform 0.3s ease;
}

.solid-pitch {
    color: #006838;
    font-weight: 700;
    margin-bottom: 25px;
}

.solid-pitch-par {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Tabs */
.tabs {
    margin-bottom: 40px;
}

.tabsinput {
    display: none;
}

.old-label {
    display: inline-block;
    padding: 15px 35px;
    background: #f8f9fa;
    color: #555;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin: 0 10px 20px 0;
    border: 2px solid transparent;
}

.old-label:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.tabsinput:checked + .old-label {
    background: linear-gradient(135deg, #006838 0%, #00a854 100%);
    color: #fff;
    border-color: #006838;
    box-shadow: 0 5px 20px rgba(0, 104, 56, 0.3);
}

.tabs section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tabs #tab1:checked ~ #content1,
.tabs #tab2:checked ~ #content2 {
    display: block;
}

/* Form Inputs */
.newlabel {
    font-weight: 600;
    color: #083042;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.newinput,
.form-control,
.form-select {
    background: #fff;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.newinput:focus,
.form-control:focus,
.form-select:focus {
    border-color: #006838;
    box-shadow: 0 0 0 0.2rem rgba(0, 104, 56, 0.15);
    outline: none;
}

.button-btn {
    background: linear-gradient(135deg, #006838 0%, #00a854 100%);
    color: #fff;
    padding: 15px 60px;
    border-radius: 25px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 104, 56, 0.3);
    margin-top: 30px;
}

.button-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 104, 56, 0.4);
    background: linear-gradient(135deg, #00a854 0%, #006838 100%);
}

/* File Upload */
.fileUploadInput {
    position: relative;
    margin-top: 20px;
}

.fileUploadInput label {
    font-weight: 600;
    color: #083042;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.fileUploadInput input[type="file"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px dashed #006838;
    border-radius: 12px;
    background: #f8faf9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fileUploadInput input[type="file"]:hover {
    background: #e8f5f0;
    border-color: #00a854;
}

.fileUploadInput button {
    display: none;
}

.word-counter {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .hero-section,
    .hero-section-grants {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }

    .support,
    .mission,
    .vision {
        padding: 40px 0;
    }

    .form-bg {
        padding: 30px 20px;
    }

    .grants {
        font-size: 32px;
    }

    .old-label {
        padding: 12px 25px;
        font-size: 14px;
    }

    .force-push {
        margin-left: 0 !important;
    }
}