@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
body{
  font-family: "Outfit", sans-serif;
    background-color: #bcecf5;
  
}

.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 10px 0;
}
.navbar .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}


.nav-link{
    color: white;
    margin: 0 10px;
    border-radius: 15px;
    padding: 5px 10px;
}

/* Hero Slider Adjustments */
@media (max-width: 768px) {
 
    
    .carousel-item {
        height: 80vh; /* Dynamic height based on viewport */
        min-height: 300px;
        max-height: 400px;
    }
    
    .carousel-item img {
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }
    
    .carousel-caption {
        bottom: 20%;
        padding: 1rem;
        background: rgba(0,0,0,0.7);
        width: 90%;
        left: 5%;
        border-radius: 8px;
    }
    
    .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption p {
        display: none; /* Hide description on mobile */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
    width: 15px;
    height: 15px;
    margin: 5px;
    border-radius: 50%;
}

    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin: 0 4px;
    }
}


.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.btn {
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translate
}

.card-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show 2 lines */
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 3em; /* 2 lines * 1.5 line-height */
    transition: max-height 0.3s ease;
}

.card:hover .card-text {
    -webkit-line-clamp: unset;
    max-height: 200px; /* Adjust based on content */
    overflow-y: auto;
}

/* Custom scrollbar */
.card-text::-webkit-scrollbar {
    width: 5px;
}

.card-text::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.card-text::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.card-text::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.list-item {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.list-item:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}

.list-item h6 {
    font-weight: 600;
    color: #2c3e50;
}

.list-item .text-muted {
    color: #7f8c8d !important;
}

.list-item small.text-muted {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.list-item i.bi {
    font-size: 1.2rem;
    margin-top: 3px;
}

/* Different icons for each section */
#eventsCard .bi { color: #27ae60; } /* Green for events */
#blogsCard .bi { color: #e67e22; }  /* Orange for blogs */ 


.carousel-item img{
    height: 600px;
    border-radius: 20px;
}   

/* IAP Sections */
.iap-pledge {
    background: url('assets/patterns/pledge-bg.png');
    background-size: contain;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

.bg-light-purple {
    background-color: #f3e8ff;
}

.text-purple {
    color: #6f42c1;
}

.pledge-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.initiative-card {
    transition: transform 0.3s ease;
}

.initiative-card:hover {
    transform: translateX(5px);
}   

/* Global Section Styling */
.section-wrapper {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.section-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.section-header {
    border-left: 5px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--bs-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Color Variations */
.bg-soft-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}
.bg-soft-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}
.bg-soft-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #f8f5ff 100%);
}

/* Card Enhancements */
.enhanced-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Button Styling */
.btn-elevated {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-elevated:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}   

@media (max-width: 767px) {
    .navbar-collapse {
        background: rgba(0,100,0,0.95);
        border-radius: 0 0 15px 15px;
        padding: 1rem;
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 12px 15px;
        margin: 4px 0;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu {
        background: rgba(255,255,255,0.1);
        border: none;
        margin-left: 15px;
    }
    
    .dropdown-item {
        color: #fff !important;
        padding: 10px 20px;
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.15);
    }
}   

/* Image Gallery Styles */
.gallery-grid {
    padding: 0 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    z-index: 2;
}

.gallery-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Lightbox Styling */
.glightbox-clean .gslide-description {
    background: rgba(0,0,0,0.8);
}

.glightbox-clean .gslide-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Lightbox Fixes */
.gslide img {
    max-width: 100vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
}

.gslide-inline {
    background: rgba(0,0,0,0.9) !important;
}

.gclose {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
}

.gprev, .gnext {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    padding: 10px !important;
}   

/* Carousel Animations */
.carousel-caption h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.carousel-item.active .carousel-caption h2 {
    opacity: 1;
    transform: translateY(0);
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add animation delay for better sequencing */
.carousel-item.active .carousel-caption h2 {
    animation-delay: 0.3s;
}   

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.08);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.table thead th {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1.25rem;
}

.table td {
    vertical-align: middle;
    padding: 1rem;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.text-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}   

.oath-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.oath-list li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.oath-list li:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

.rating-badge {
    font-size: 0.9rem;
    background: linear-gradient(45deg, #4b6cb7, #182848);
}   

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.rating-stars input:checked ~ label,
.rating-stars input:hover ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ffc107;
}

.rating-stars input:checked + label {
    color: #ffc107;
}

.bi::before {
    display: inline-block;
    vertical-align: -.125em;
    font-family: "bootstrap-icons" !important;
    font-style: normal;
    font-weight: normal !important;
}   

input:invalid {
    border-color: #dc3545;
}
input:valid {
    border-color: #28a745;
}   