:root {
    --green: #2e7d32;
    --green-light: #4caf50;
    --gold: #c8922a;
    --cream: #fdf8f0;
    --dark: #1a1a1a;
    --text: #333;
    --muted: #666;
    --border: #e0d8cc;
    --card-bg: #fff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
}

/* ── TOP NAV ── */
nav {
    background: var(--green);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

nav .logo {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav .logo span {
    color: var(--gold);
}

nav .nav-links {
    display: flex;
    gap: 24px;
}

nav .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav .nav-links a:hover {
    color: var(--gold);
}

/* ── LAYOUT ── */
.page-wrapper {
    max-width: 1300px;
    margin: 36px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* ── LEFT COLUMN ── */
.left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── CERTIFICATE CARD ── */
.certificate-card {
    border-radius: 16px;

    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow);

}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cert-badge {
    width: 64px;
    height: 64px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(200, 146, 42, 0.4);
    position: relative;
}

.cert-badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(200, 146, 42, 0.5);
}

.cert-label {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cert-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cert-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.cert-line {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

.cert-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── TABS ── */
.tabs {
    display: flex;

    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 14px 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: black;
    background: rgba(46, 125, 50, 0.05);
    border-bottom-color: var(--green);
}

/* ── CONTENT CARD ── */
.content-card {

    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.content-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-card p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 14px;
}

.feature-list {
    list-style: none;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: black;
    line-height: 1.5;
}

.feature-list li .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.promise-block {
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border-left: 4px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.promise-block p {
    color: #7a5c1e;
    font-size: 0.88rem;
    margin: 0;
}

.promise-block strong {
    color: var(--gold);
}

.cta-text {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    border: 1px solid #a5d6a7;
}

.cta-text p {
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

/* ── COMMENT SECTION ── */
.comment-section {

    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.comment-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-notice {
    font-size: 0.8rem;
    color: black;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--dark);
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background: #fff;
}

.char-limit {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: -8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #ff691b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background: #1b5e20;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.35);
}

.btn-outline {
    background: #fff;
    color: black;
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: var(--cream);
    color: var(--dark);
}

/* ── RIGHT COLUMN ── */
.right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── SHARE CARD ── */
.share-card {

    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.share-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.share-link {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.share-link input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.78rem;
    color: black;
    background: var(--cream);
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.copy-btn {
    padding: 10px 14px;
    background: #ff691b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #1b5e20;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 700;
    color: #fff;
}

.social-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.si-fb {
    background: #1877f2;
}

.si-tw {
    background: #000;
}

.si-li {
    background: #0a66c2;
}

.si-pt {
    background: #e60023;
}

.si-wa {
    background: #25d366;
}

/* ── ORGANIZER CARD ── */
.organizer-card {
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.organizer-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.organizer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.organizer-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.organizer-details h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
}

.organizer-details p {
    font-size: 0.78rem;
    color: black;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── TIMER CARD ── */
.timer-card {

    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.timer-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.timer-blocks {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.timer-block {
    flex: 1;
    background: #ff691b;
    color: #fff;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
}

.timer-block .num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.timer-block .lbl {
    font-size: 0.65rem;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.goal-info {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.goal-info .raised {
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
}

.progress-bar {
    height: 8px;
    background: black;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 3%;
    background: linear-gradient(90deg, var(--green-light), var(--green));
    border-radius: 99px;
    transition: width 1s ease;
}

.donate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.4);
}

/* ── RELATED CARD ── */
.related-card {
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.related-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 600;
}

.related-campaign {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1a237e, #283593, #3949ab);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.related-img .rc-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.related-body {
    padding: 14px;
}

.related-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.related-body p {
    font-size: 0.78rem;
    color: black;
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-body .read-more {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.related-progress {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid black;
}

.rp-bar {
    height: 5px;
    background: #e8f5e9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.rp-fill {
    height: 100%;
    width: 0.5%;
    background: var(--green);
    border-radius: 99px;
}

.rp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: black;
}

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .page-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-col>*,
.right-col>* {
    animation: fadeUp 0.5s ease both;
}

.left-col>*:nth-child(1) {
    animation-delay: 0.1s;
}

.left-col>*:nth-child(2) {
    animation-delay: 0.2s;
}

.left-col>*:nth-child(3) {
    animation-delay: 0.3s;
}

.left-col>*:nth-child(4) {
    animation-delay: 0.4s;
}

.right-col>*:nth-child(1) {
    animation-delay: 0.15s;
}

.right-col>*:nth-child(2) {
    animation-delay: 0.25s;
}

.right-col>*:nth-child(3) {
    animation-delay: 0.35s;
}

.right-col>*:nth-child(4) {
    animation-delay: 0.45s;
}