/* Custom CSS for Sadiq Sarwar Foundation Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --light-blue: #87CEEB;
    --light-blue-hover: #7BB8D6;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Hero Banner Section Styles */
.hero-banner-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out;
    color: white !important;
    background: rgba(0,0,0,0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-block;
}

.hero-subtitle {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
    color: white !important;
    background: rgba(0,0,0,0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 2rem !important;
}

/* Banner placeholder styling when no image is present */
.hero-banner-image[src="/images/banner-image.jpg"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-image[src="/images/banner-image.jpg"]::after {
    content: 'Banner Image Placeholder\A(1200x600px recommended)';
    white-space: pre-line;
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner-section {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
        max-width: 40px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Footer logo */
.footer-logo {
    height: 32px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    filter: none; /* Use original logo colors on light footer */
}

/* Custom Light Blue Navigation Bar */
.navbar.bg-primary {
    background-color: var(--light-blue) !important;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-blue-hover) 100%) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--warning-color) !important;
}

.navbar-dark .navbar-brand {
    color: #ffffff !important;
}

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

.navbar-dark .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.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown menu styling for light blue navbar */
.navbar-nav .dropdown-menu {
    background-color: var(--light-blue);
    border: 1px solid var(--light-blue-hover);
}

.navbar-nav .dropdown-menu .dropdown-item {
    color: #ffffff;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background-color: var(--light-blue-hover);
    color: #ffffff;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Founders Section Styling */
.founders-photo {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border: 5px solid var(--light-blue);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founders-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

.founders-story-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--light-blue);
}

.founders-story-content h2 {
    position: relative;
}

.founders-story-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--light-blue), var(--light-blue-hover));
    border-radius: 2px;
}

/* Responsive adjustments for founders section */
@media (max-width: 991px) {
    .founders-photo {
        width: 240px;
        height: 300px;
    }
    
    .founders-story-content {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .founders-photo {
        width: 200px;
        height: 250px;
    }
    
    .founders-story-content {
        padding: 1rem;
    }
    
    .founders-story-content h2 {
        font-size: 1.75rem;
    }
}

/* Team Carousel Styling */
.team-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    width: 100%;
}

.team-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.team-carousel::-webkit-scrollbar {
    display: none; /* WebKit */
}

.team-member-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
}

.team-member-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--light-blue);
    transition: transform 0.3s ease;
}

.team-member-photo:hover {
    transform: scale(1.1);
}

.team-member-card .card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-member-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Responsive adjustments for team carousel */
@media (max-width: 768px) {
    .team-member-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
    
    .team-member-photo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .team-carousel-container {
        padding: 0 10px;
    }
    
    .team-member-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .team-member-photo {
        width: 70px;
        height: 70px;
    }
}

/* Team Carousel - pagination dots */
.team-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.team-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9dee3;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.team-carousel-dot:hover {
    background-color: #c4cbd3;
    transform: scale(1.1);
    opacity: 1;
}

.team-carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.25);
    opacity: 1;
}

.team-carousel-dot:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-top: 1px solid #e9ecef;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Impact Statistics */
.display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Project Cards */
.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.project-card .card-img-top {
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Donation Form */
.btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Admin Dashboard Styles */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
}

.admin-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #146c43 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #b02a37 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0aa2c0 100%);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .modal {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}