/*==============================================================
  FAMUTUM - Faculdade de Nova Mutum 
  Custom CSS Styles
==============================================================*/

/*--------------------------------------------------------------
# Variables & Root
--------------------------------------------------------------*/
:root {
    /* Main Brand Colors - Based on logo colors */
    --primary-color: #e63946; /* Vermelho claro da logo */
    --primary-dark: #c1121f;
    --secondary-color: #495057; /* Cinza escuro da logo */
    --secondary-light: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    
    /* Font Family Variables */
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Poppins', sans-serif;
    
    /* Transition Variable */
    --transition: all 0.3s ease-in-out;
  }
 /* Estilo para o submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Mostrar submenu ao passar o mouse */
.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

/* Seta para indicar que tem submenu */
.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

  /*--------------------------------------------------------------
  # General Styles
  --------------------------------------------------------------*/
  body {
    font-family: var(--primary-font);
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--white-color);
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    font-weight: 600;
  }
  
  a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary-color);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  /* Custom Bootstrap Overrides */
  .btn {
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover,
  .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
  }
  
  .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  .dropdown-menu {
  transition: opacity 0.2s ease;
  opacity: 0;
  display: block;
  visibility: hidden;
  position: absolute;
}

.navbar .dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
  }
  
  .text-primary {
    color: var(--primary-color) !important;
  }
  
  .bg-primary {
    background-color: var(--primary-color) !important;
  }
  
  /*--------------------------------------------------------------
  # Animation Classes
  --------------------------------------------------------------*/
  .animate-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .animate-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: -2;
  }
  
  .animate-btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all .3s;
    z-index: -1;
  }
  
  .animate-btn:hover {
    color: #fff;
  }
  
  .animate-btn:hover:before {
    width: 100%;
  }
  
  /* Hero Animations */
  .animate-hero {
    animation: fadeInDown 1s both;
  }
  
  .animate-hero-subtitle {
    animation: fadeInUp 1s both .3s;
  }
  
  .animate-hero-btn {
    animation: fadeInUp 1s both .6s;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translate3d(0, -50px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translate3d(0, 50px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
  
  /*--------------------------------------------------------------
  # Header & Navigation
  --------------------------------------------------------------*/
  .top-bar {
    font-size: 0.9rem;
  }
  
  .navbar {
    transition: var(--transition);
  }
  
  .navbar-brand .logo {
    max-height: 50px;
  }
  
  .navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
  }
  
  .navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 1rem;
    bottom: 0.25rem;
    transition: var(--transition);
  }
  
  .navbar .nav-link:hover:after {
    width: calc(100% - 2rem);
  }
  
  .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
  }
  
  .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
  }
  
  .dropdown-item:hover {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary-color);
  }
  
  /*--------------------------------------------------------------
  # Hero Section
  --------------------------------------------------------------*/

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

  .hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
  }
  
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(21, 21, 21, 0.9) 0%, rgba(21, 21, 21, 0.6) 100%);
  }
  
  .min-vh-80 {
    min-height: 50vh;
  }
  
  .text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  /*--------------------------------------------------------------
  # Counter Section
  --------------------------------------------------------------*/
  .counter-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
  }
  
  .counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  
  .counter-card i {
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .counter-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  /*--------------------------------------------------------------
  # About Section
  --------------------------------------------------------------*/
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title .subtitle {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .about-image {
    position: relative;
    z-index: 1;
  }
  
  .about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    top: -20px;
    right: -20px;
    z-index: -1;
    border-radius: 0.5rem;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .feature-item i {
    margin-right: 0.5rem;
  }
  
  /*--------------------------------------------------------------
  # Courses Section
  --------------------------------------------------------------*/
  .course-card {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
  }
  
  .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  
  .course-img {
    position: relative;
    overflow: hidden;
  }
  
  .course-img img {
    transition: var(--transition);
  }
  
  .course-card:hover .course-img img {
    transform: scale(1.1);
  }
  
  .course-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .course-content {
    padding: 1.5rem;
  }
  
  .course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .course-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }
  
  .course-info {
    display: flex;
    align-items: center;
  }
  
  .course-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
  }
  
  .post-grad-item {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
  }
  
  .post-grad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .post-grad-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  /*--------------------------------------------------------------
  # Vestibular Section
  --------------------------------------------------------------*/
  .vestibular-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
  }
  
  .vestibular-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .vestibular-list li i {
    color: var(--white-color);
    margin-right: 0.5rem;
  }
  
  .vestibular-form {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  /*--------------------------------------------------------------
  # Blog Section
  --------------------------------------------------------------*/
  .blog-card {
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
  }
  
  .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  
  .blog-img {
    position: relative;
    overflow: hidden;
  }
  
  .blog-img img {
    transition: var(--transition);
  }
  
  .blog-card:hover .blog-img img {
    transform: scale(1.1);
  }
  
  .blog-date {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.5rem 1rem;
    text-align: center;
    line-height: 1.3;
  }
  
  .blog-date span {
    display: block;
    font-weight: 500;
  }
  
  .blog-date span:first-child {
    font-size: 1.5rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }
  
  .blog-meta span {
    display: flex;
    align-items: center;
  }
  
  .blog-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .blog-content h3 a {
    color: var(--dark-color);
    transition: var(--transition);
  }
  
  .blog-content h3 a:hover {
    color: var(--primary-color);
  }
  
  .blog-link {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
  }
  
  .blog-link i {
    margin-left: 0.3rem;
    transition: var(--transition);
  }
  
  .blog-link:hover i {
    transform: translateX(5px);
  }
  
  /*--------------------------------------------------------------
  # Calendar Section
  --------------------------------------------------------------*/
  .calendar-item {
    display: flex;
    background: var(--white-color);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
  }
  
  .calendar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .calendar-date {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 80px;
  }
  
  .calendar-date span {
    display: block;
    text-align: center;
    font-weight: 600;
  }
  
  .calendar-date span:first-child {
    font-size: 1.2rem;
  }
  
  .calendar-details {
    padding: 1rem;
  }
  
  .calendar-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .calendar-details p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  
  /*--------------------------------------------------------------
  # Contact Section
  --------------------------------------------------------------*/
  .contact-info {
    display: flex;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
  }
  
  .contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 40px;
  }
  
  .contact-form {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  }
  
  .map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    min-height: 350px;
  }
  
  /*--------------------------------------------------------------
  # Footer
  --------------------------------------------------------------*/
  .footer {
    background-color: var(--dark-color);
  }
  
  .footer-logo {
    max-height: 50px;
  }
  
  .social-links {
    display: flex;
  }
  
  .social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white-color);
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
  }
  
  .footer-widget h4 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
  }
  
  .footer-links {
    list-style: none;
    padding-left: 0;
  }
  
  .footer-links li {
    margin-bottom: 1rem;
  }
  
  .footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
  }
  
  .contact-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
  }
  
  /*--------------------------------------------------------------
  # Back to Top Button
  --------------------------------------------------------------*/
  .back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
  }
  
  .back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-3px);
  }
  
  /*--------------------------------------------------------------
  # Responsive Media Queries
  --------------------------------------------------------------*/
  @media (max-width: 991.98px) {
    .hero-section, .hero-slide {
      height: 70vh;
    }
    
    .navbar .nav-link:after {
      display: none;
    }
    
    .feature-item {
      margin-bottom: 0.5rem;
    }
  }
  
  @media (max-width: 767.98px) {

    .top-bar {
      font-size: 0.8rem;
    }
    
    .counter-card {
      padding: 1.5rem;
    }
    
    .counter-card h2 {
      font-size: 2rem;
    }
    
    .section-title {
      margin-bottom: 1.5rem;
    }
    
    .calendar-date {
      min-width: 60px;
    }
    
    .footer-widget h4 {
      margin-bottom: 1rem;
    }
  }
  
  @media (max-width: 575.98px) {
    .hero-section, .hero-slide {
      height: 50vh;
    }
    
    .hero-slide .display-4 {
      font-size: 1.8rem;
    }
    
    .hero-slide .lead {
      font-size: 1rem;
    }
    
    .top-bar .col-md-6:last-child {
      justify-content: center !important;
      margin-top: 0.5rem;
    }
    
    .contact-info {
      flex-direction: column;
      text-align: center;
    }
    
    .contact-icon {
      margin-right: 0;
      margin-bottom: 1rem;
    }
    
    .footer-bottom {
      text-align: center;
    }
    
    .footer-bottom .text-md-end {
      margin-top: 0.5rem;
    }
  }

  /*--------------------------------------------------------------
# Post Graduation Styles
--------------------------------------------------------------*/
.post-grad-wrapper {
    position: relative;
    padding: 20px 0;
}

.post-grad-item {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.post-grad-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.post-grad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.post-grad-item:hover h4 {
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Form Styles
--------------------------------------------------------------*/
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--secondary-light);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e63946' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 12px;
}

/*--------------------------------------------------------------
# Map Placeholder
--------------------------------------------------------------*/
.map-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.map-placeholder {
    background-color: var(--light-color);
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .post-grad-item {
        padding: 1.25rem;
    }
    
    .vestibular-form {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .course-card h3 {
        font-size: 1.3rem;
    }
    
    .post-grad-item h4 {
        font-size: 1.1rem;
    }
    
    .vestibular-form h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .map-placeholder {
        min-height: 250px;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
    }
}

/*--------------------------------------------------------------
# Counter Animation Fix
--------------------------------------------------------------*/
.counter-item {

    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.counter-item.visible {
    opacity: 1;
    transform: translateY(0);
}