* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  :root {
    --ifsul-green: #1a5f3a;
    --ifsul-green-light: #2d7a52;
    --ifsul-green-dark: #0f4428;
    --gray-light: #f8f9fa;
    --text-dark: #212529;
}


#time {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 76px);
    padding: 4rem 0;
}


.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--ifsul-green);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--ifsul-green) 0%, var(--ifsul-green-light) 100%);
    border-radius: 2px;
}


.section-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 2rem;
}


hr.my-4 {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--ifsul-green-light) 50%, transparent 100%);
    margin: 2.5rem 0;
}

.card-front {
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.card-container:hover .card-front {
    border-color: var(--ifsul-green-light);
}

.card-front .event-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
}

.event-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ifsul-green);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.text-justify {
    text-align: justify;
    hyphens: auto;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}


.card-back {
  
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.download-link {
    background: white;
    color: var(--ifsul-green);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-link:hover {
    background: var(--gray-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--ifsul-green-dark);
}

.download-link i {
    font-size: 1.5rem;
}

.download-link h5 {
    margin: 0;
    font-size: 1rem;
}
.btn-cta {
    background: white;
    color: var(--ifsul-green);
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--ifsul-green-dark);
}
.head-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.discipline-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.discipline-info i {
    font-size: 1.1rem;
    color: var(--ifsul-green);
}


  
.nav-pills {
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    gap: 0.5rem;
}

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
section.secaoteste
{
    display: flex;
    justify-content: space-between;
}
.btn-wrapper
{
    display: flex;
    justify-content: center;
    align-items: end;
}

.nav-pills .nav-link:hover {
    background: rgba(26, 95, 58, 0.1);
    color: var(--ifsul-green);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--ifsul-green) 0%, var(--ifsul-green-light) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(26, 95, 58, 0.3);
}

.bi.bi-clock-fill.text-primary {
    color: var(--ifsul-green)!important;
  }


  
  a.name {
    text-decoration: none;
  }
  .btn-secondary 
  {
    background-color: #2c3e50 !important;
  }

  
  @media (max-width: 768px) {
    #time {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 1rem;
    }

.card-container {
   min-height: 340px;
   height: auto;
    margin-bottom: 1.5rem;
  }
    .event-title {
        font-size: 1rem;
    }

    .text-justify {
        font-size: 0.85rem;
    }

    .nav-pills {
        flex-direction: column;
        border-radius: 15px;
        gap: 0.3rem;
    }

    .nav-pills .nav-link {
        width: 100%;
        text-align: center;
    }

    iframe[title="Horários TMSI"] {
        height: 500px !important;
    }
}

@media (max-width: 576px) {
    #time .container {
    padding: 1rem; 
  }
    .section-title {
        font-size: 1.5rem;
    }

.card-container {
   
    min-height: 400px;
    height: auto;
  }
 
  .card-front .event-card {
    padding: 1rem; 
  }

 
  .text-justify {
    font-size: 0.85rem; 
    line-height: 1.4;
  }
  
 
  .event-title {
      font-size: 1rem;
      margin-bottom: 0.5rem;
  }

    .download-link {
        padding: 0.8rem 1.5rem;
    }

    .download-link h5 {
        font-size: 0.9rem;
    }
}

.col-md-4:first-child .card-front {
    border-color: var(--ifsul-green-light);
    background: linear-gradient(135deg, rgba(26, 95, 58, 0.03) 0%, white 100%);
}


.discipline-info strong {
    color: var(--ifsul-green);
    font-weight: 600;
}


#time .container {
    background: white;
    padding: 3rem;
    border-radius: 20px;

}
