/* EFM ADECON - Site Institucional - Estilo profissional faculdade/EAD */
:root {
  --efm-primary: #0d3b66;
  --efm-primary-dark: #0a2d4a;
  --efm-accent: #1a5f7a;
  --efm-gold: #c9a227;
  --efm-light: #f8f9fa;
  --efm-white: #ffffff;
  --efm-text: #2c3e50;
  --efm-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--efm-text);
  background: var(--efm-light);
  line-height: 1.6;
}

/* Fundo sutil para páginas */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(13, 59, 102, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(26, 95, 122, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
  pointer-events: none;
  z-index: -1;
}

/* ========== NAVBAR ========== */
.site-navbar {
  background: linear-gradient(135deg, var(--efm-primary) 0%, var(--efm-accent) 100%) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
}

.site-navbar .container { max-width: 1140px; }

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--efm-white) !important;
  font-weight: 700;
  font-size: 1.35rem;
}

.site-logo img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.site-navbar .nav-link:hover {
  color: var(--efm-white) !important;
  background: rgba(255,255,255,0.15);
}

/* Dropdown no menu */
.site-navbar .dropdown-menu {
  background: var(--efm-primary-dark);
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 0.5rem 0;
  margin-top: 0.35rem;
}
.site-navbar .dropdown-menu .dropdown-item {
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 1rem;
}
.site-navbar .dropdown-menu .dropdown-item:hover,
.site-navbar .dropdown-menu .dropdown-item:focus {
  background: rgba(255,255,255,0.15);
  color: var(--efm-white);
}
.site-navbar .dropdown-divider {
  border-color: rgba(255,255,255,0.2);
}
.site-navbar .navbar-nav .nav-item + .nav-item { margin-left: 0; }

.btn-area-aluno {
  background: var(--efm-white);
  color: var(--efm-primary) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-area-aluno:hover {
  background: var(--efm-light);
  color: var(--efm-primary) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== CAROUSEL / SLIDER ========== */
.hero-slider {
  margin-bottom: 0;
}

.hero-slider .carousel-item {
  height: 420px;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.hero-slider .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.88) 0%, rgba(26, 95, 122, 0.85) 100%);
  z-index: 0;
}

.hero-slider .carousel-caption {
  z-index: 1;
  bottom: 15%;
  padding: 0 1rem;
}

.hero-slider .carousel-caption h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-slider .carousel-caption p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.95;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: background 0.2s;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  background: rgba(255,255,255,0.35);
}

/* ========== HERO (abaixo do slider) ========== */
.section-hero {
  background: linear-gradient(135deg, var(--efm-primary) 0%, var(--efm-accent) 100%);
  color: var(--efm-white);
  padding: 3.5rem 0;
}

.section-hero h1 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.section-hero .lead { opacity: 0.95; }

.btn-efm {
  background: var(--efm-gold);
  color: var(--efm-primary-dark) !important;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-efm:hover {
  background: #d4ad2a;
  color: var(--efm-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-efm-outline {
  background: transparent;
  color: var(--efm-white) !important;
  border: 2px solid var(--efm-white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.btn-efm-outline:hover {
  background: var(--efm-white);
  color: var(--efm-primary) !important;
}

/* ========== CARDS DESTAQUE ========== */
.section-cards .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.section-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.12);
}

.section-cards .card-title {
  color: var(--efm-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.section-cards .card-body { padding: 1.75rem; }

/* ========== SEÇÃO AUTORIDADE ========== */
.section-authority {
  background: var(--efm-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 2.5rem;
  margin-top: 3rem;
}

.section-authority p {
  font-size: 1.1rem;
  color: var(--efm-text);
  margin: 0;
}

/* ========== FORMULÁRIO MATRÍCULA / CONTATO ========== */
.section-matricula {
  padding: 3rem 0;
}

.matricula-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.matricula-card .card-header {
  background: linear-gradient(135deg, var(--efm-primary) 0%, var(--efm-accent) 100%);
  color: var(--efm-white);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: none;
}

.matricula-card .form-label {
  font-weight: 600;
  color: var(--efm-text);
}

.matricula-card .form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.6rem 0.85rem;
}

.matricula-card .form-control:focus {
  border-color: var(--efm-accent);
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.matricula-info {
  background: #f0f4f8;
  border-radius: 12px;
  padding: 1.5rem;
}

.matricula-info h6 {
  color: var(--efm-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.matricula-info a {
  color: var(--efm-accent);
  font-weight: 500;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(180deg, var(--efm-primary-dark) 0%, #051a2d 100%);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover { color: var(--efm-white); }

.site-footer .footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-footer hr { border-color: rgba(255,255,255,0.2); }

/* ========== PÁGINAS INTERNAS ========== */
.page-header {
  background: linear-gradient(135deg, var(--efm-primary) 0%, var(--efm-accent) 100%);
  color: var(--efm-white);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-weight: 700;
  margin: 0;
}

.content-section { padding: 2rem 0; }

.card-inner {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: none;
}

/* ========== BUNNY ADS (espaço para propaganda) ========== */
.bunny-ad-slot {
  min-height: 50px;
  background: rgba(13, 59, 102, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== SEÇÃO PROFESSOR / LIDERANÇA DESTAQUE ========== */
.section-professor .card-professor-destaque {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.section-professor .professor-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 4px solid var(--efm-accent);
}

.section-professor .professor-photo-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--efm-primary) 0%, var(--efm-accent) 100%);
  color: var(--efm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* ========== SEÇÃO EQUIPE ========== */
.section-team .card-team {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section-team .card-team:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13, 59, 102, 0.12);
}

.section-team .team-photo {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid var(--efm-accent);
}

.section-team .team-photo-placeholder {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  background: var(--efm-light);
  color: var(--efm-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ========== SEÇÃO PATROCÍNIO ========== */
.section-sponsors .sponsor-link {
  display: inline-block;
  text-decoration: none;
  color: var(--efm-text);
  transition: opacity 0.2s;
}

.section-sponsors .sponsor-link:hover {
  opacity: 0.85;
  color: var(--efm-primary);
}

.section-sponsors .sponsor-logo {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.section-sponsors .sponsor-name {
  font-weight: 600;
  color: var(--efm-primary);
}

/* ========== PATROCÍNIO – HTML estático, sem JS. Sempre visível. ========== */
.efm-banner-section,
.efm-banner-inner,
.efm-sponsor-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 auto;
  background: transparent;
  min-height: 60px;
}
#efm-banner-top { padding: 0.5rem 0; }
#efm-banner-top .efm-banner-inner { max-width: 970px; margin-left: auto; margin-right: auto; padding: 0 15px; }
.efm-sponsor-block .sponsor-link { display: block; text-align: center; }
.efm-sponsor-block .sponsor-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.efm-sponsor-block .sponsor-html { text-align: center; }

.sponsor-zone-top-inner { max-width: 970px; }
.sponsor-zone-home { max-width: 970px; }

/* Seção Patrocínio (rodapé) – banner pequeno 300x250 */
#efm-banner-footer .efm-banner-inner,
#patrocinio .efm-banner-footer-inner { max-width: 300px; margin-left: auto; margin-right: auto; }
#patrocinio .efm-sponsor-block .sponsor-banner,
#efm-banner-footer .sponsor-banner { max-width: 300px; max-height: 250px; object-fit: contain; }
