/*
 * =======================================
 * ABOUT.CSS
 * Styles specific to the About Us page.
 * All base styles are inherited from base.css.
 * =======================================
 */

main {
    padding: 120px 20px 40px;
    position: relative; /* Ensure main content is above canvas */
    z-index: 1;
}

/* --- Base Content Styles --- */
.content-section {
    max-width: 1200px;
    margin: 0 auto 100px auto;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #00d65b;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #c0c0d0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* --- About Page Sections --- */
.about-section {
    text-align: center;
    max-width: 900px;
    margin-bottom: 80px;
    background-color: rgba(13, 27, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 214, 91, 0.15);
}
.about-section .section-title {
    text-align: center;
    font-size: 36px;
}
.about-text p {
    font-size: 17px;
    color: #c0c0d0;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: left;
}

/* --- Key Points / Pillars --- */
.key-points-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.key-point {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border-left: 3px solid #00d65b;
    text-align: left;
}
.key-point h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}


/* --- Timeline Section Styles (Unchanged) --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
    padding: 0 20px;
}
.timeline-container::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: rgba(0, 214, 91, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-left: 0;
    padding-right: 50px;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-right: 0;
    padding-left: 50px;
    text-align: left;
}
.timeline-dot {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #0d1b2a;
    border: 3px solid #00d65b;
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: 3px;
    transform: translateX(50%);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: 3px;
    transform: translateX(-50%);
}
.timeline-content {
    padding: 20px 30px;
    background-color: #101d35;
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(0, 214, 91, 0.2);
}
.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #00d65b;
    margin-bottom: 8px;
    display: block;
}
.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 10px;
}
.timeline-content p {
    font-size: 15px;
    color: #b0b0c0;
    line-height: 1.6;
}


/* --- NEW: Certificates Section Styles --- */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.certificate-card {
    background-color: #101d35;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden; /* To clip the preview image */
}
.certificate-card:hover {
    transform: translateY(-5px);
    background-color: #162642;
    border-color: rgba(0, 214, 91, 0.5);
    box-shadow: 0 8px 25px rgba(0, 214, 91, 0.15);
}
.cert-preview {
    width: 100%;
    height: 180px;
    background-color: #0d1b2a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cert-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Will cover the area, good for images */
}
.cert-preview .cert-icon {
    font-size: 60px;
    color: #00d65b;
    line-height: 1;
}
.cert-preview .cert-file-type {
    font-size: 14px;
    color: #b0b0c0;
    font-weight: 500;
    margin-top: 10px;
}
.certificate-info {
    padding: 20px;
    text-align: center;
}
.certificate-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}


/* --- NEW: Redesigned Team Section Styles --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}
.team-card {
    background: linear-gradient(145deg, #122038, #0f1a2e);
    border-radius: 15px;
    border: 1px solid rgba(0, 214, 91, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* To clip the new image */
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 214, 91, 0.2);
}
/* NEW: Rectangular image style */
.team-image-new {
    width: 100%;
    height: 250px; /* You can adjust this height */
    object-fit: cover;
    background-color: #2a3a5e; /* Fallback color */
}
.team-card-inner {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.team-name {
    font-size: 22px;
    color: #00d65b;
    margin-bottom: 5px;
    font-weight: 700;
}
.team-role {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
    margin-bottom: 15px;
}
.team-description {
    font-size: 14px;
    color: #b0b0c0;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}
.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Pushes to bottom */
    justify-content: center;
}
.skill-tag {
    background-color: rgba(0, 214, 91, 0.15);
    color: #00d65b;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}
.team-empty-message {
    grid-column: 1 / -1; /* Span full width if grid is empty */
    color: #b0b0c0;
    font-size: 16px;
}


/* --- Responsive Media Queries (Same as before) --- */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title { font-size: 36px; }
    .section-subtitle { font-size: 16px; }
    
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) { left: 0; text-align: left; padding-left: 50px; }
    .timeline-dot { left: 3px; transform: translateX(0); }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot { left: 3px; transform: translateX(0); margin-left: 10px; }
}

@media (max-width: 576px) {
    main { padding-top: 100px; }
    .about-section { padding: 30px 20px; }
    .key-points-container { flex-direction: column; align-items: flex-start; }
    .key-point { min-width: 100%; }
}