/* About Page Styles for SAMC Website
------------------------------------------- */

/* General Styles */
.divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin-top: 10px;
    margin-bottom: 20px;
}

.section-header p.lead {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light-gold {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Keep old class name for backward compatibility */
.bg-light-green {
    background-color: rgba(212, 175, 55, 0.1);
}

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

/* Page Banner */
.page-banner {
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* About Intro Section */
.about-image {
    border-radius: 5px;
    overflow: hidden;
}

.experience-badge {
    bottom: 30px;
    right: -20px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin-top: 50px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    min-height: 150px;
}

.timeline-item:after {
    clear: both;
    content: "";
    display: table;
}

.timeline-item .timeline-content {
    width: 45%;
    padding: 20px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    position: relative;
}

.timeline-item.left .timeline-content {
    float: right;
}

.timeline-item.right .timeline-content {
    float: left;
}

.timeline-item .timeline-content:before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
}

.timeline-item.left .timeline-content:before {
    right: 100%;
    border-top: 10px solid transparent;
    border-right: 10px solid #fff;
    border-bottom: 10px solid transparent;
}

.timeline-item.right .timeline-content:before {
    left: 100%;
    border-top: 10px solid transparent;
    border-left: 10px solid #fff;
    border-bottom: 10px solid transparent;
}

.timeline-item:after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
    margin-left: -10px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Leadership Profiles Section */
.leadership-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.leadership-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--primary);
}

.profile-img {
    position: relative;
    display: inline-block;
}

.profile-img:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    border: 3px solid var(--primary);
    opacity: 0;
    transition: all 0.3s ease;
}

.leadership-card:hover .profile-img:after {
    opacity: 1;
    transform: scale(1.1);
}

.social-links a {
    transition: all 0.3s ease;
}

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

/* Organizational Structure Section */
.card-header {
    border-bottom: none;
}

.card-header button {
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-left: 0;
}

.card-header button:hover,
.card-header button:focus {
    color: var(--primary);
    text-decoration: none;
}

.card-header button:after {
    content: '\f107';
    font-family: "Font Awesome 5 Free";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.card-header button.collapsed:after {
    transform: translateY(-50%) rotate(-90deg);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .timeline:before {
        left: 30px;
    }
    
    .timeline-item .timeline-content {
        width: calc(100% - 60px);
        float: right;
    }
    
    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        float: right;
    }
    
    .timeline-item.left .timeline-content:before,
    .timeline-item.right .timeline-content:before {
        right: 100%;
        left: auto;
        border-top: 10px solid transparent;
        border-right: 10px solid #fff;
        border-bottom: 10px solid transparent;
        border-left: none;
    }
    
    .timeline-item:after {
        left: 30px;
        margin-left: -10px;
    }
}

/* Animation Delay Classes */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Call to Action Section */
.cta-section {
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}
