/* Public Website Custom Styles for Orphanage Foundation */

/* ========================================
   Base Styles
======================================== */
:root {
    --primary-color: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --secondary-color: #1565C0;
    --accent-color: #FF6F00;
    --text-dark: #1B1B1B;
    --text-muted: #6c757d;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Buttons
======================================== */
.btn-custom {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-donate {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-donate:hover {
    background-color: #e65100;
    border-color: #e65100;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 111, 0, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   Page Header / Banner
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: var(--white);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Sidebar Menu
======================================== */
.sidebar-menu {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-menu ul li {
    border-bottom: 1px solid #eee;
}

.sidebar-menu ul li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

.sidebar-menu a i {
    width: 25px;
    margin-right: 10px;
}

/* ========================================
   Content Cards
======================================== */
.content-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

/* ========================================
   Stats Section
======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 0;
    color: var(--white);
}

.stats-item {
    text-align: center;
    padding: 20px;
}

.stats-item .number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.stats-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* ========================================
   Program Cards
======================================== */
.program-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-card .image {
    height: 200px;
    overflow: hidden;
}

.program-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.program-card:hover .image img {
    transform: scale(1.1);
}

.program-card .content {
    padding: 25px;
}

.program-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.program-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.program-card .btn-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   Children Gallery
======================================== */
.child-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.child-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.child-card .photo {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.child-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-card .sponsored-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.child-card .sponsored-badge.sponsored {
    background: var(--accent-color);
}

.child-card .info {
    padding: 20px;
}

.child-card .name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.child-card .details {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.child-card .story {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Forms
======================================== */
.form-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   Gallery
======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: var(--white);
    font-size: 1.5rem;
}

/* ========================================
   Testimonials
======================================== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author .name {
    font-weight: 600;
}

/* ========================================
   Contact Page
======================================== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-item .icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-info-item h5 {
    margin-bottom: 5px;
}

/* ========================================
   Alerts / Messages
======================================== */
.alert-custom {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-custom i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ========================================
   Utilities
======================================== */
.section-padding {
    padding: 80px 0;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .stats-item .number {
        font-size: 2rem;
    }
}
