/* ================================
   GLOBAL VARIABLES
================================ */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #0288D1;
    --accent-color: #F9A825;
    --text-color: #333333;
    --bg-color: #F4F7F6;
    --white: #FFFFFF;
    --gray-light: #E0E0E0;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 25px rgba(0,0,0,0.15);

    --border-radius: 10px;
}

/* ================================
   RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: #222;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* ================================
   LAYOUT
================================ */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 70px 0;
}

.text-center {
    text-align: center;
}

/* ================================
   NAVBAR (PROFESSIONAL NGO STYLE)
================================ */
.navbar {
    background-color: var(--white);
    padding: 18px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
}

/* Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: #1e5e22;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white) !important;
}

.btn-secondary:hover {
    background-color: #01639c;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: #333 !important;
}

/* Mobile */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ================================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(
        135deg,
        rgba(46,125,50,0.9),
        rgba(2,136,209,0.9)
    );
    color: var(--white);
    padding: 110px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* ================================
   GRID & CARDS
================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ================================
   DASHBOARD
================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background-color: var(--white);
    padding: 30px 20px;
    box-shadow: var(--shadow);
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-color);
    border-radius: var(--border-radius);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
}

.dashboard-content {
    flex: 1;
    padding: 30px;
}

/* ================================
   FORMS
================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(2,136,209,0.2);
}

/* ================================
   CHAT UI
================================ */
.chat-container {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 15px;
    border-radius: 15px;
}

.message.user {
    background-color: rgba(2, 136, 209, 0.1);
    align-self: flex-end;
}

.message.ai {
    background-color: rgba(46, 125, 50, 0.1);
    align-self: flex-start;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: 10px;
}

/* ================================
   FOOTER
================================ */
footer {
    background-color: #1f1f1f;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* ================================
   URDU SUPPORT
================================ */
body.urdu-active {
    direction: rtl;
    font-family: var(--font-urdu);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}