@charset "utf-8";
/* CSS Document */
/* Mobile-first responsive styles for About Us page */

/* Mission Section */
.mission-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
	padding-top: 5vh;
}

@media (min-width:1024px) {
	.mission-section {
		margin-top: 0;
		position:relative;
		z-index: 5;
	}
}

.mission-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000080;
    text-align: center;
}

.mission-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 2rem;
}

/*.mission-values {
    display: grid;
    gap: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-item h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: #666;
    line-height: 1.6;
}*/

.mission-image {
    order: -1;
}

.mission-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* History Section */
.history-section {
    padding: 4rem 0;
    background: white;
}

.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #da9434;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
    opacity: 1; /* Changed from 0 to 1 to make visible by default */
    transform: translateX(0); /* Reset transform */
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -60px; /* Adjusted positioning */
    top: 0;
    min-width: 120px; /* Changed to min-width for longer dates */
    max-width: 140px;
	height:auto;
    background: #000080;
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    z-index: 2;
    padding: 2px 10px; /* Added padding for longer text */
    white-space: normal;
	text-align: center;
	line-height:1.2;
	word-break: break-word;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-text h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.timeline-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-image{
	position: relative;
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
	display: block;
}

.timeline-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75); /* Nearly opaque */
    color: white;
    padding: 12px;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    font-weight: 500;
	font-style:italic;
    letter-spacing: 0.3px; /* Improves readability */
    border-top: 2px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

/* Team Section 
.team-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.team-section .section-title {
    color: white;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    max-width: 280px;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.role {
    opacity: 0.8;
    font-size: 0.95rem;
}*/

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .mission-content {
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }

    .mission-text {
        flex: 1;
    }

    .mission-image {
        flex: 1;
        order: 0;
    }

    .section-title {
        text-align: left;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 45%;
        padding-left: 0;
        margin-bottom: 4rem;
    }

    .timeline-item:nth-child(odd) {
        margin-left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        margin-left: 55%;
        text-align: left;
    }

    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(odd)::before {
        right: -40px;
        left: auto;
        transform: none;
    }

    .timeline-item:nth-child(even)::before {
        left: -40px;
        transform: none;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .section-title {
        font-size: 2.5rem;
    }

    .mission-statement {
        font-size: 1.2rem;
    }

    /*.team-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }*/

    .timeline-content {
        padding: 2rem;
    }

    .timeline-text h3 {
        font-size: 1.6rem;
    }

    .timeline-text p {
        font-size: 1.1rem;
    }
}

/* Mobile: Stack year on top */
@media (max-width: 767px) {
    .timeline-item {
        padding-left: 60px; /* Reduce left padding since year moves to top */
        padding-top: 35px; /* Add top padding for the year badge */
    }
    
    .timeline-item::before {
        left: 0; /* Align with content */
        top: -25px; /* Position above the content */
        transform: none;
        min-width: auto;
        max-width: 200px; /* Allow more width for longer dates */
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .timeline::before {
        left: 25px; /* Adjust timeline line position */
    }
	
	 .timeline-image-caption {
        font-size: 12px;
        padding: 8px 10px;
        line-height: 1.3;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 50px;
        padding-top: 10px; /* Slightly more space for year */
    }
    
    .timeline-item::before {
        top: -10px;
        max-width: 180px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .timeline::before {
        left: 20px;
    }
	
	 .timeline-image-caption {
        font-size: 11px;
        padding: 6px 8px;
        line-height: 1.2;
        letter-spacing: 0.1px;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Thinner border */
    }
}

@media (max-width: 360px) {
    .timeline-item {
        padding-left: 40px;
        padding-top: 55px;
    }
    
    .timeline-item::before {
        top: -45px;
        max-width: 160px;
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .timeline::before {
        left: 15px;
    }
	
	 .timeline-image-caption {
        font-size: 10px;
        padding: 5px 6px;
        line-height: 1.2;
        letter-spacing: normal;
    }
}