/* 
 * LOK KALYAN NGO CSS Stylesheet
 * Custom styles for professional NGO design
 * White background, Dark Green primary (#084c2a), Orange accent (#ff6f00)
 */

:root {
    --primary-color: #084c2a;
    --primary-hover: #05331c;
    --primary-light: #e6f3eb;
    --primary-rgb: 8, 76, 42;
    --accent-color: #ff6f00;
    --accent-hover: #e65100;
    --accent-light: #fff3e0;
    --accent-rgb: 255, 111, 0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f7f9f6;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 10px 30px rgba(8, 76, 42, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title .subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 12px;
    padding: 6px 16px;
    background-color: var(--accent-light);
    border-radius: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 76, 42, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 76, 42, 0.15);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.2);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Header & Sticky Nav */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header.sticky {
    position: fixed;
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    animation: slideDown 0.4s ease-in-out;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg,
.logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.header.sticky .logo-text {
    color: var(--primary-color);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: 6px 0;
}

.header.sticky .nav-link {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
}

.lang-select {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 32px;
    transition: var(--transition-smooth);
}

.lang-select option {
    background: var(--primary-color);
    color: white;
}

.header.sticky .lang-select {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: var(--text-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e293b'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
}

.lang-select:focus {
    border-color: var(--accent-color);
}


/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.header.sticky .hamburger .bar {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 76, 42, 0.85) 0%, rgba(3, 30, 16, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-white);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .badge {
    background-color: var(--accent-color);
    color: var(--text-white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.8;
}

.about-desc::first-letter {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    float: left;
    line-height: 0.85;
    margin-right: 12px;
    margin-top: 4px;
    font-family: Georgia, serif;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
    transform: translate(25px, 25px);
    pointer-events: none;
    opacity: 0.2;
}

.image-card {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background-color: var(--accent-color);
    color: var(--text-white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(255, 111, 0, 0.25);
    z-index: 10;
}

.image-card h3 {
    color: var(--text-white);
    font-size: 1.5rem;
}

.image-card p {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.objective-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(8, 76, 42, 0.2);
}
.objective-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
}
.objective-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}
.objective-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Registration Section */
.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.reg-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.reg-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(8, 76, 42, 0.2);
}

.reg-icon {
    font-size: 2.2rem;
    background-color: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--primary-color);
}

.reg-info h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.reg-info p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.reg-card.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #042615 100%);
    border: none;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.reg-card.full-width::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.reg-card.full-width .reg-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.reg-card.full-width .reg-info h4 {
    color: rgba(255, 255, 255, 0.7);
}

.reg-card.full-width .reg-info p {
    color: var(--text-white);
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.reg-card.full-width .highlight-text {
    font-family: monospace;
    font-size: 2rem !important;
    color: var(--accent-color) !important;
}

/* Documents Section */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.doc-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(8, 76, 42, 0.2);
}

.doc-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.doc-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.doc-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.doc-card .doc-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.doc-card .doc-actions .btn {
    flex: 1;
}

/* PDF Viewer Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #f8fafc;
    width: 90%;
    max-width: 850px;
    height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 16px 24px;
    background-color: var(--primary-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: var(--text-white);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Certificate Layout Styling */
.certificate-preview {
    background-color: #ffffff;
    width: 100%;
    max-width: 650px;
    border: 15px double var(--primary-color);
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 4.5rem;
    font-weight: 800;
    color: rgba(8, 76, 42, 0.04);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.cert-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.cert-gov-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cert-dept {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 4px;
}

.cert-form-no {
    display: inline-block;
    border: 1px solid var(--primary-color);
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--primary-color);
}

.cert-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.cert-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cert-content p {
    margin-bottom: 12px;
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cert-table th, .cert-table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: left;
}

.cert-table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
}

.cert-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cert-seal {
    width: 90px;
    height: 90px;
    border: 2px dashed var(--accent-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    transform: rotate(-10deg);
}

.cert-signature {
    text-align: center;
    font-size: 0.85rem;
}

.signature-line {
    width: 150px;
    height: 1px;
    background-color: var(--text-dark);
    margin-bottom: 6px;
}

.modal-footer {
    padding: 16px 24px;
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.address-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 20px;
    border: 1px solid var(--border-color);
}

.address-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.address-details h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.address-details address {
    font-style: normal;
    color: var(--text-muted);
    line-height: 1.7;
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* Form Styling */
.contact-form-container {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    background-color: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Validation Feedback */
.form-input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-text {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
    display: none;
}

.form-input.invalid + .error-text {
    display: block;
}

/* Success Overlay in Form */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.98);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    text-align: center;
    padding: 30px;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: scalePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-overlay h3 {
    margin-bottom: 10px;
}

.form-success-overlay p {
    color: var(--text-muted);
}

/* Footer styling */
.footer {
    background-color: #031c0e;
    color: #cbd5e1;
    padding: 80px 0 30px;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand .logo-text {
    color: var(--text-white);
}

.footer-desc {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-links h4, .footer-contact h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.contact-list .icon {
    margin-top: 2px;
}

.footer-highlights h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-highlights h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-gallery img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.footer-gallery img:hover {
    transform: scale(1.05);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Scroll to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-white);
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 76, 42, 0.3);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animations keyframes */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scalePop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 16px;
    }
    .lang-select {
        padding: 4px 28px 4px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 380px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    /* Hamburger navigation */
    .hamburger {
        display: flex;
    }

    /* Mobile Logo Adaptations */
    .logo-img {
        width: 32px !important;
        height: 32px !important;
    }
    .logo-text {
        font-size: 1.25rem;
    }
    .logo {
        gap: 8px;
    }
    .hero-content {
        width: 100%;
        padding: 0 16px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 30px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--text-white);
        font-size: 1.15rem;
        width: 100%;
    }
    
    .header.sticky .nav-link {
        color: var(--text-white);
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--text-white) !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--text-white) !important;
    }
    
    .lang-select {
        margin-top: 20px;
        background-color: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: white;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    }
    
    .header.sticky .lang-select {
        background-color: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: white;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-card {
        padding: 30px 20px;
    }
    
    .doc-card .doc-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        height: 90vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .certificate-preview {
        padding: 20px;
        border-width: 8px;
    }
    
    .certificate-preview td, 
    .certificate-preview th {
        word-break: break-all;
        overflow-wrap: break-word;
    }

    .certificate-preview span,
    .certificate-preview p {
        overflow-wrap: break-word;
    }
    
    .cert-seal {
        width: 70px;
        height: 70px;
        font-size: 0.6rem;
    }
    
    .cert-content {
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices optimization */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.85rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        line-height: 1.35;
    }
    
    .hero .badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 16px;
    }
    
    .deed-section {
        padding: 20px;
    }
    
    .reg-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .reg-card {
        padding: 20px;
    }
    
    .reg-card.full-width .reg-info p {
        font-size: 1.25rem;
    }
    
    .reg-card.full-width .highlight-text {
        font-size: 1.35rem !important;
    }
    
    .contact-form-container {
        padding: 24px 16px;
    }
    
    .donation-card {
        padding: 24px 16px;
    }
}

/* Trust Badges Styling */
.trust-badges-section {
    padding: 50px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.trust-badge-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}
.trust-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(8, 76, 42, 0.15);
}
.trust-badge-icon {
    font-size: 2rem;
    background-color: var(--primary-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--primary-color);
}
.trust-badge-info h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 6px;
}
.trust-badge-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 500;
}

/* How It Works Styling */
.how-it-works {
    background-color: var(--bg-white);
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}
.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 10px;
}
.how-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}
.how-step:hover .how-icon-wrapper {
    transform: scale(1.08) rotate(5deg);
}
.how-icon-wrapper.yellow-bg {
    background-color: #ffff00;
    color: #002157;
}
.how-icon-wrapper.blue-bg {
    background-color: #002157;
    color: #ffff00;
}
.how-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 15px;
    width: 14px;
    height: 14px;
    background-color: inherit;
    transform: rotate(45deg);
    z-index: -1;
    border-radius: 2px;
}
.how-icon {
    width: 32px;
    height: 32px;
}
.how-content h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}
.how-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Explore Our Work (Programmes) Side-by-Side 2 in one row Styling */
.programme-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.programme-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.programme-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(8, 76, 42, 0.18);
}
.programme-img {
    height: auto;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}
.programme-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}
.programme-item:hover .programme-img img {
    transform: scale(1.04);
}
.programme-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.programme-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}
.programme-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hero Custom Button Subtext */
.hero-buttons-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    width: 100%;
}
.hero-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.btn-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Media Queries Updates */
@media (max-width: 992px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .programme-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .hero-btn-wrapper {
        width: 100%;
        max-width: 280px;
    }
    .hero-btn-wrapper .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .how-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    .how-icon {
        width: 28px;
        height: 28px;
    }
}


/* ============================================================
   MOBILE NAV — Prevent horizontal scroll on open menu
   ============================================================ */
@media (max-width: 991px) {
    .nav-menu {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .nav-menu.active {
        max-width: 100vw;
    }
    .header-container {
        max-width: 100%;
    }
}

/* ============================================================
   GENERAL MOBILE FIX — All sections stay within viewport
   ============================================================ */
section, .container, main, footer, header {
    max-width: 100%;
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   STATS ICON CARD STYLE  (icon on top, counter, label)
   ============================================================ */
.stats {
    background: var(--bg-light);
}
.stats .section-title .subtitle {
    color: var(--accent-color);
}
.stats .section-title h2 {
    color: var(--primary-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 10px;
}

/* Icon Card */
.stat-icon-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px 24px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.stat-icon-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}
.stat-icon-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 16px 40px rgba(8, 76, 42, 0.13);
}
.stat-icon-card:hover::before {
    transform: scaleX(1);
}

/* Icon image */
.sic-img-wrap {
    width: 110px;
    height: 110px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    border: 3px solid rgba(8, 76, 42, 0.08);
    transition: var(--transition-smooth);
}
.stat-icon-card:hover .sic-img-wrap {
    background: rgba(8, 76, 42, 0.12);
    border-color: rgba(8, 76, 42, 0.2);
    transform: scale(1.05);
}
.sic-img-wrap img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Counter */
.sic-counter-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-bottom: 10px;
}
.sic-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}
.sic-plus {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

/* Label & Description */
.sic-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}
.sic-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .stat-icon-card {
        padding: 24px 16px 20px;
    }
    .sic-img-wrap {
        width: 80px;
        height: 80px;
    }
    .sic-img-wrap img {
        width: 56px;
        height: 56px;
    }
    .sic-number {
        font-size: 2.2rem;
    }
    .sic-plus {
        font-size: 1.6rem;
    }
    .sic-label {
        font-size: 0.88rem;
    }
}

/* Floating Contact Widget */
.floating-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 1000;
}

.fc-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    margin-right: 5px; /* Align with center of main button */
}

.floating-contact-widget.active .fc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fc-menu-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.fc-menu-item:hover {
    transform: scale(1.1);
}

.bg-teal { background-color: #00d27f; }
.bg-green { background-color: #25d366; }
.bg-darkgreen { background-color: #319c5b; }

.fc-main-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    font-family: inherit;
    transition: transform 0.2s ease;
}

.fc-main-btn:hover {
    transform: scale(1.05);
}

.fc-bubble {
    background-color: white;
    color: #1e293b;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-contact-widget.active .fc-bubble {
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}
/* Vision, Mission, History Section */
.vmh-section {
    margin-top: 80px;
}

/* Inline section title: badge + heading on same row */
.section-title-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.section-title-inline .subtitle {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(var(--accent-rgb, 234, 143, 0), 0.12);
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
}

.section-title-inline h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .section-title-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .section-title-inline h2 {
        font-size: 1.5rem;
    }
}

.vmh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vmh-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.vmh-card:hover {
    transform: translateY(-5px);
}

.vision-card { border-bottom: 4px solid var(--accent-color); }
.mission-card { border-bottom: 4px solid #00dfa2; }

.vmh-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.vmh-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vmh-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.history-content {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.history-text {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.history-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.history-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

.history-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .about-content .about-image {
        order: 2;
    }
    .about-content .about-text {
        order: 1;
    }
    .history-content {
        grid-template-columns: 1fr;
    }
}

.fc-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.fc-icon {
    width: 60px;
    height: 60px;
    background-color: #a78bfa;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
    position: relative;
}

.fc-icon-default, .fc-icon-close {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fc-icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.floating-contact-widget.active .fc-icon-default {
    opacity: 0;
    transform: rotate(90deg);
}

.floating-contact-widget.active .fc-icon-close {
    opacity: 1;
    transform: rotate(0);
}

@media (max-width: 768px) {
    .floating-contact-widget {
        bottom: 20px;
        right: 20px;
    }
    .fc-bubble {
        display: none;
    }
    .fc-icon {
        width: 50px;
        height: 50px;
    }
    .fc-icon svg {
        width: 24px;
        height: 24px;
    }
    .fc-menu-item {
        width: 44px;
        height: 44px;
    }
    .fc-menu-item svg {
        width: 22px;
        height: 22px;
    }
    .fc-menu {
        margin-right: 3px;
    }
}


