/* ============================================
   New Vision for Life Foundation CMS
   Public Theme - Banana Leaf Green
   ============================================ */

:root {
    --primary: #4a7c3f;
    --primary-dark: #365a2e;
    --primary-light: #6aad5a;
    --bg-cream: #f0f5ed;
    --bg-card: #e4eddf;
    --bg-card-light: #f2f7ef;
    --text-dark: #2a3d24;
    --text-muted: #5a6e54;
    --border-color: #b8ccb0;
    --shadow: 0 4px 15px rgba(74, 124, 63, 0.1);
    --shadow-hover: 0 8px 25px rgba(74, 124, 63, 0.2);
    --radius: 15px;
    --radius-sm: 10px;
}

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

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Navbar
   ============================================ */
.navbar-custom {
    background-color: var(--primary);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-custom .nav-link:hover {
    color: #fff;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-logo {
    height: 80px;
    width: auto;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

/* ============================================
   Search
   ============================================ */
.search-input {
    border-radius: var(--radius) 0 0 var(--radius);
    border: 2px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    background: var(--bg-card-light);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}

.btn-search {
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 0.6rem 1.2rem;
}

.btn-search:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* ============================================
   Student Card (Grid View)
   ============================================ */
.student-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.student-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-card-badge {
    font-size: 0.85rem;
    font-weight: 600;
}

.student-card-logo {
    height: 35px;
    width: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.student-card-body {
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    flex: 1;
}

.student-card-photo {
    flex-shrink: 0;
    width: 120px;
    height: 150px;
}

.student-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-photo {
    width: 100%;
    height: 100%;
    background: var(--bg-card-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--border-color);
}

.student-card-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.student-card-info p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.student-card-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.25rem;
    justify-content: center;
}

.student-card-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.student-card-footer {
    padding: 1rem 1.25rem;
    text-align: center;
    margin-top: auto;
}

.btn-sponsor {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-sponsor:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: scale(1.05);
}

/* ============================================
   Student Profile Page (Detail)
   ============================================ */
.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.profile-header h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-foundation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.profile-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.profile-body {
    padding: 2rem;
}

.profile-main-photo {
    width: 100%;
    max-width: 250px;
    border-radius: var(--radius-sm);
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.no-photo-lg {
    width: 200px;
    height: 250px;
    margin: 0 auto;
    background: var(--bg-card-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--border-color);
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.profile-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profile-address {
    background: var(--bg-card-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
}

.profile-address h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-photos {
    display: flex;
    gap: 0.75rem;
    padding: 0 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.profile-thumb:hover {
    transform: scale(1.05);
}

.profile-bottom {
    padding: 1.5rem 2rem;
    margin-top: 1rem;
}

.profile-contact-box,
.profile-support-box {
    background: var(--bg-card-light);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    height: 100%;
    border: 1px solid var(--border-color);
}

.profile-contact-box h6,
.profile-support-box h6 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.profile-qr {
    max-width: 200px;
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ============================================
   Donate Page
   ============================================ */
.donate-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
}

.donate-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s;
}

.donate-card:hover {
    transform: translateY(-3px);
}

/* Donation Form Cards */
form .donate-card {
    text-align: left;
    height: auto;
    padding: 1.5rem;
}

form .donate-card:hover {
    transform: none;
}

.donate-card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.donate-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.donate-info {
    text-align: left;
}

.donate-info p {
    margin-bottom: 0.75rem;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.donate-qr {
    max-width: 250px;
    border-radius: var(--radius-sm);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.donate-contact {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.donate-contact h4 {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer hr {
    border-color: rgba(255,255,255,0.15);
}

/* ============================================
   Pagination
   ============================================ */
.page-link {
    color: var(--primary);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: var(--bg-card);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .student-card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .student-card-photo {
        width: 150px;
        height: 180px;
    }

    .profile-body {
        padding: 1rem;
    }

    .profile-photos {
        padding: 0 1rem;
    }

    .profile-thumb {
        width: 80px;
        height: 80px;
    }

    .profile-bottom {
        padding: 1rem;
    }

    .student-card-thumbs img {
        width: 55px;
        height: 55px;
    }
}
