/**
 * @file
 * Subtheme specific CSS.
 */

/* Footer spaceing fix */
footer { margin-top: 40px; }

/* Hero Section Styles */
.hero-section {
    height: 600px;
    margin-bottom: 2rem;
}

.hero-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Category Cards */
.category-card {
    background: white;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

/* Step Circles */
.step-circle {
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto;
}

/* Campaign Cards */
.campaign-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

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

.campaign-card img {
    height: 200px;
    object-fit: cover;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar {
    background-color: var(--bs-primary);
}

/* Social Icons */
.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--bs-primary) !important;
}

/* Custom Button Styles */
.btn-primary {
    padding: 0.5rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

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

/* Project Detail Page */
.donor-comment {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.update-item {
    padding: 1rem 0;
}

.donation-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Adding carousel styles to existing CSS */
.carousel-img {
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--bs-primary);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

/* Thumbnail Navigation */
.carousel-thumbnails {
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 100px;
    height: 70px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--bs-primary);
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure thumbnails are scrollable on mobile */
@media (max-width: 768px) {
    .carousel-thumbnails {
        padding-bottom: 15px;
    }
}

/* Style Browse Project Category  selector */
#views-exposed-form-browse-projects-page-1 .js-form-item { padding-right:20px; display:inline-block }

/* Some form reduce size */
#user-register-form { max-width: 600px; }
#user-login-form { max-width: 600px; }
#edit-donation-amount { max-width: 200px; }

/* Page title fix */
#block-efyfa-barrio-pagetitle { margin-top:20px }

/* Fix brand style */
.navbar-brand { font-family: 'Montserrat'!important; }

/* Projects Table Styles */
.projects-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.projects-table th,
.projects-table td {
    padding: 1rem;
    vertical-align: middle;
	border: 0;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.projects-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.projects-table tr {
	background: none;
}
.projects-table tr:hover {
    background-color: #f8f9fa;
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.projects-table .profile-image {
    max-width: 60px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.projects-table .donation-input {
    max-width: 150px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.projects-table .progress {
    height: 5px;
    margin: 0;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.projects-table .progress-bar {
    background-color: var(--bs-primary);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.projects-table .progress-bar.bg-success {
    background-color: var(--bs-success) !important;
}

.projects-table .organizer-info {
    display: flex;
    align-items: center;
}

.projects-table .organizer-info span {
    color: #495057;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-table {
        display: block;
        overflow-x: auto;
        border-radius: 0;
    }

    .projects-table th,
    .projects-table td {
        white-space: nowrap;
    }
}