
/* Inline styles for theme consistency and quick setup */
:root {
    --primary-color: #007bff; 
    --secondary-color: #6c757d; 
    --light-bg-color: #f8f9fa; 
    --dark-text-color: #343a40;
    --white-color: #ffffff;
    --font-family: 'Vazirmatn', sans-serif;
    --cyan:#06b6d4;
    --yellow:#f59e0b;
    --bg:#f8fafc;
    --card:#ffffff;
    --dark:#1e1b4b;

}

.btn-nav{
    background: linear-gradient(135deg, var(--primary3), var(--primary2));
    color: var(--txt-btn) !important;
  }
  .btn-nav:hover{
    background: linear-gradient(135deg, var(--primary3), var(--primary2));
    color: var(--dark-text-color) !important;
  }
  .btn-outline-nav{
    border:1px solid var(--primary2) !important;
   transition: 0.3s ease;
  }
  .btn-outline-nav:hover{
    background: linear-gradient(135deg, var(--primary3), var(--primary2));
    color: var(--txt-btn) !important;
  }
/* ===== Prevent overflow ===== */
.container,
.row,
.col,
.navbar,
.navbar-nav,
.header-shell,
.header-top,
.header-bottom {
min-width: 0;
}

img,
svg,
video,
canvas {
max-width: 100%;
height: auto;
}


body {
    font-family: "Vazirmatn", sans-serif !important;

    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
    overflow-x: hidden; 
}



/* Timeline Section */
.cardx {
    border: none;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    text-align: right;
    box-shadow: 0 5px 40px rgba(139, 3, 127, 0.691);
}

.timeline {
    position: relative;
    padding-top: 50px; 
    padding-bottom: 50px; 
}


.timeline:before {
    content: '';
    position: absolute;
    right: 50%; 
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(var(--p1), var(--p2));
    transform: translateX(2px); 
}

.step {
    width: 50%;
    padding: 20px 50px;
    position: relative;
    border-radius: 5px;
}

.step:nth-child(odd) {
    margin-right: auto;
    left: 0; 
}

.step:nth-child(even) {
    margin-left: auto;
    right: 0; 
}


.step:before {
    content: '';
    position: absolute;
    top: 45px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--p2);
    z-index: 1; 
}

.step:nth-child(odd):before {
   
    left: -9px; 
}

.step:nth-child(even):before {
    
    right: -9px; 
}


@media (max-width: 991px) {
    .timeline:before {
        
        right: auto; 
        left: 20px; 
        transform: translateX(0); 
    }

    .step {
        width: 100%; 
        padding-left: 70px; 
        padding-right: 20px;
        margin-right: auto; 
        margin-left: auto; 
        text-align: left; 
    }

    
    .step:before {
        left: 11px; 
        right: auto; 
        top: 25px; 
    }

    
    .cardx p {
        font-size: 1rem;
    }
    .cardx h4 {
        font-size: 1.4rem;
    }
}


@media (max-width: 576px) {
    .cardx {
        padding: 20px; 
    }
    .step {
        padding-left: 50px; 
    }
     .step:before {
        left: 6px; 
        width: 16px; 
        height: 16px;
    }
    .timeline:before {
        left: 18px; 
    }
}





/* Project Cards Section */
.projects-section {
    padding: 50px 0;
    background-color: #fff; 
}

.projects-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.projects-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-text-color);
}
.projects-section .section-title span {
    font-size: 1.1rem;
    color: var(--primary2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    
}

.project-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; 
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; 
}
.project-content {
    padding: 25px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-content h4 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-text-color);
}
.project-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.project-card .btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start; 
}
.project-card .btn:hover {
    background-color: #0056b3; 
}

/* Awards Section */
.awards-section {
    padding: 50px 0;
    background-color: var(--light-bg-color);
}
.awards-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}
.awards-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-text-color);
}
.awards-section .section-title span {
    font-size: 1.1rem;
    color: var(--primary2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.award-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.award-item i {
    font-size: 3rem;
    color: var( --yellow);
    margin-bottom: 15px;
    display: inline-block;
}
.award-item h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-text-color);
}
.award-item p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Accordion  */
.accordion .accordion-item {
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
}
.accordion-header button {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--dark-text-color);
    text-decoration: none;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: right;
    padding: 15px 20px;
    position: relative;
    font-size: 1.1rem;
}
.accordion-header button:not(.collapsed) {
    background-color: var(--light-bg-color);
    border-bottom: 1px solid #e0e0e0;
}
.accordion-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-color);
    padding: 20px;
}
.accordion-button::after { 
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button:not(.collapsed)::after {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c5460'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
/* top btn */

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .timeline-section::before { left: 25px; transform: none; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 10px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 15px; right: auto; }
    .timeline-item:nth-child(odd)::after { right: auto; left: 15px; }
    .timeline-year { display: none; } 
    .page-header h1 { font-size: 2.5rem; }
    .projects-section .section-title h2, .awards-section .section-title h2 { font-size: 2.2rem; }
}
@media (max-width: 767.98px) {
    .timeline-item { padding-left: 50px; }
    .timeline-item::after { left: 5px; }
    .project-card img { height: 180px; }
    .project-content { padding: 20px; }
}
 @media (max-width: 575.98px) {
     .page-header h1 { font-size: 2rem; }
     .page-header p.subtitle { font-size: 1rem; }
     .timeline-item { padding-left: 40px; }
     .timeline-content h3 { font-size: 1.4rem; }
     .project-card .btn { width: 100%; }
 }
