/* 
 * Custom CSS for "Our Impact" Pages
 * Human Rights Are Universal Arts Festival
 */

/* ----- Common Styles ----- */
.impact-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #202060;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.impact-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background-color: #FFD900;
}

.impact-section {
    margin-bottom: 4rem;
    width: 100%;
    overflow: hidden;
}

.impact-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid #FFD900;
    word-wrap: break-word;
}

.impact-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.impact-highlight {
    color: #E73B5E;
    font-weight: 600;
}

.impact-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

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

.impact-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.impact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #FFD900;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #202060;
}

.impact-stat {
    text-align: center;
    margin-bottom: 2rem;
}

.impact-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #E73B5E;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.impact-stat-label {
    font-size: 1.2rem;
    color: #202060;
    font-weight: 500;
}

.impact-image {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    max-width: 100%;
    height: auto;
}

.impact-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #202060;
    padding: 1.5rem;
    background-color: rgba(255, 217, 0, 0.1);
    border-left: 5px solid #FFD900;
    margin: 2rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

.impact-quote-icon {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 2rem;
    color: rgba(32, 32, 96, 0.1);
    z-index: 0;
}

.impact-quote-text {
    position: relative;
    z-index: 1;
    padding-left: 2rem;
    margin-bottom: 0;
}

.impact-quote-text cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: #E73B5E;
}

.impact-quote-author {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

.impact-stats {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.impact-cta {
    background-color: #202060;
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
    width: 100%;
}

.impact-cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.impact-cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.impact-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFD900;
    color: #202060;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.impact-btn:hover {
    background-color: #E73B5E;
    color: #fff;
    transform: translateY(-2px);
}

.impact-btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #FFD900;
    font-weight: 600;
    border: 2px solid #FFD900;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.impact-btn-outline:hover {
    background-color: #FFD900;
    color: #202060;
}

/* ----- Contact Page Styles ----- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD900;
    color: #202060;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #202060;
}

.contact-info-content p {
    color: #333;
    margin-bottom: 0;
    word-wrap: break-word;
}

.contact-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #202060;
    box-shadow: 0 0 0 0.25rem rgba(32, 32, 96, 0.25);
}

.contact-form .form-label {
    color: #202060;
    font-weight: 500;
}

.contact-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #202060;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background-color: #E73B5E;
    transform: translateY(-3px);
}

/* ----- How We Run Page Styles ----- */
.how-we-run-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.principle-item {
    flex: 1 1 300px;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
}

.principle-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #FFD900;
}

.principle-number {
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    bottom: -20px;
    right: -10px;
    color: rgba(32, 32, 96, 0.1);
}

.principle-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 1rem;
    position: relative;
    word-wrap: break-word;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid rgba(255, 217, 0, 0.5);
}

.team-member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.team-member-position {
    font-size: 1rem;
    color: #E73B5E;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.organization-chart {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* ----- Activities Page Styles ----- */
.activity-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: #fff;
    transition: transform 0.3s ease;
    width: 100%;
}

.activity-card:hover {
    transform: translateY(-10px);
}

.activity-image {
    height: 250px;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.activity-content {
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.activity-description {
    color: #333;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.activity-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 217, 0, 0.2);
    color: #202060;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.activity-slider {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.activity-slider-image {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
}

.activity-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: #fff;
}

.activity-slider-caption h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

/* ----- Festival Page Styles ----- */
.festival-timeline {
    position: relative;
    padding-left: 40px;
    margin: 3rem 0;
}

.festival-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #FFD900;
}

.timeline-event {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #E73B5E;
    border: 4px solid #FFD900;
}

.timeline-event-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E73B5E;
    margin-bottom: 0.5rem;
}

.timeline-event-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.festival-editions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.festival-edition-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.festival-edition-card:hover {
    transform: translateY(-10px);
}

.festival-edition-image {
    height: 250px;
    overflow: hidden;
}

.festival-edition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.festival-edition-card:hover .festival-edition-image img {
    transform: scale(1.05);
}

.festival-edition-content {
    padding: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.festival-edition-year {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: #FFD900;
    color: #202060;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 0.75rem;
}

.festival-edition-theme {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.festival-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.festival-gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.festival-gallery-item:hover {
    transform: translateY(-5px);
}

.festival-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.festival-gallery-item:hover img {
    transform: scale(1.05);
}

/* Timeline Styles for Timelines Page */

.timeline-container {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #FFD900;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #E73B5E;
    border: 4px solid #FFD900;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E73B5E;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #202060;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.timeline-content {
    margin-bottom: 1.5rem;
}

.timeline-image {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.timeline-year-title {
    font-size: 2rem;
    font-weight: 700;
    color: #202060;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #FFD900;
    border-radius: 5px;
    word-wrap: break-word;
}

/* Fix for impact-main-content */
.impact-main-content {
    overflow: hidden;
    width: 100%;
    margin-bottom: 3rem;
}

/* ----- Responsive Styles ----- */
@media (max-width: 991px) {
    .impact-page-title {
        font-size: 2.2rem;
    }
    
    .impact-section-title {
        font-size: 1.6rem;
    }
    
    .impact-stat-number {
        font-size: 3rem;
    }
    
    .activity-slider-image {
        height: 350px;
    }
    
    .activity-slider-caption h3 {
        font-size: 1.6rem;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .impact-page-title {
        font-size: 2rem;
    }
    
    .impact-section-title {
        font-size: 1.4rem;
    }
    
    .impact-stat-number {
        font-size: 2.5rem;
    }
    
    .activity-slider-image {
        height: 300px;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .principle-item {
        flex: 1 1 100%;
    }

    .impact-card {
        padding: 1.5rem;
    }

    .festival-edition-card,
    .festival-gallery-item {
        flex: 1 1 100%;
    }
}

/* Ensure consistent container width */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

/* Fix for cards that might be breaking out of containers */
.row > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

/* Force content to stay within bounds */
img {
    max-width: 100%;
    height: auto;
}

/* Clear floats and fix vertical spacing */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Prevent text overflow in all elements */
* {
    max-width: 100%;
}

/* ----- Visual Showcase Styles ----- */
.visual-showcase {
    margin-top: -1rem;
    margin-bottom: 3rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
    width: 100%;
}

.visual-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.visual-grid-item:hover {
    transform: translateY(-5px);
}

.visual-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.visual-grid-item:hover img {
    transform: scale(1.05);
}

.visual-grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 600;
}

/* ----- Enhanced Impact Cards with Images ----- */
.impact-card-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}

.impact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.impact-image-card:hover .impact-card-image img {
    transform: scale(1.05);
}

/* Introduction section enhancements */
.intro-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.intro-image-container:hover {
    transform: translateY(-5px);
}

.intro-image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.intro-image-container:hover img {
    transform: scale(1.05);
}

/* ----- Mission & Vision Cards ----- */
.mission-vision-section {
    margin: 5rem 0;
}

.vision-card, .mission-card {
    position: relative;
    padding-top: 180px;
    z-index: 1;
    overflow: hidden;
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    overflow: hidden;
    z-index: -1;
    border-radius: 8px 8px 0 0;
}

.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vision-card:hover .card-bg-image,
.mission-card:hover .card-bg-image {
    transform: scale(1.05);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(32, 32, 96, 0.5), rgba(32, 32, 96, 0.9));
    z-index: 1;
}

.vision-card .impact-card-icon,
.mission-card .impact-card-icon {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ----- Component Cards ----- */
.component-card {
    position: relative;
    padding-top: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease;
}

.component-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(32, 32, 96, 0.2), rgba(32, 32, 96, 0.8));
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.component-card:hover .component-bg {
    transform: scale(1.05);
}

/* ----- Enhanced Quote Section ----- */
.large-quote {
    position: relative;
    padding: 4rem 2rem;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border-left: none;
    margin: 3rem 0;
    overflow: hidden;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(32, 32, 96, 0.85);
    z-index: 0;
}

.large-quote .impact-quote-icon {
    color: rgba(255, 255, 255, 0.1);
    font-size: 5rem;
    top: 1rem;
    left: 1rem;
}

.large-quote .impact-quote-text {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.6rem;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    padding: 0;
}

.large-quote cite {
    color: #FFD900;
    margin-top: 1.5rem;
}

/* ----- Enhanced Gallery ----- */
.enhanced-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
    margin: 2rem 0;
}

.enhanced-gallery .festival-gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

.enhanced-gallery .festival-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ----- Upcoming Festival Card ----- */
.upcoming-festival-card {
    overflow: visible;
}

.upcoming-festival-images {
    position: relative;
    margin-bottom: 1.5rem;
}

.upcoming-festival-images .main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.upcoming-festival-images:hover .main-image {
    transform: translateY(-5px);
}

.upcoming-festival-images .accent-image {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 40%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.upcoming-festival-images:hover .accent-image {
    transform: translateY(-5px) rotate(5deg);
}

.festival-highlights {
    margin-top: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.highlight-item i {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 217, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E73B5E;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* ----- Responsive Adjustments ----- */
@media (max-width: 991px) {
    .visual-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 180px);
    }
    
    .large-quote {
        padding: 3rem 1.5rem;
    }
    
    .large-quote .impact-quote-text {
        font-size: 1.4rem;
    }
    
    .enhanced-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 767px) {
    .visual-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }
    
    .visual-grid-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .enhanced-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }
    
    .enhanced-gallery .festival-gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .large-quote {
        padding: 2rem 1rem;
    }
    
    .large-quote .impact-quote-text {
        font-size: 1.2rem;
    }
    
    .upcoming-festival-images .accent-image {
        bottom: -20px;
        right: -20px;
    }
} 