* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f5b914;
    --secondary: #d16a16;
    --dark: #1a1a2e;
    --light: #f2f2f2;
    --white: #ffffff;
    --success: #28a745;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.admin-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom no-repeat;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.notices-section {
    padding: 80px 20px;
    background: var(--white);
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.notice-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.notice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.notice-card.pinned {
    border: 3px solid var(--secondary);
    position: relative;
}

.notice-card.pinned::before {
    content: '📌 Fixado';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.notice img {
    width: 100%;
    max-height: 300px; /* ajuste como quiser */
    object-fit: cover; /* corta bordas para não distorcer */
    border-radius: 10px;
    margin-top: 10px;



}

.notice-content {
    padding: 1.5rem;
}

.notice-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.notice-text {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #999;
}

.about-section {
    padding: 80px 20px;
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: scale(1.05);
}

.info-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-section {
    padding: 80px 20px;
    background: var(--white);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}


footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    margin: 1.5rem 0 1rem;
    color: var(--dark);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid var(--light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-content label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.modal-content button {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#loginBtn,
#createNoticeBtn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

#registerBtn {
    background: var(--dark);
    color: var(--white);
}

#logoutBtn {
    background: #dc3545;
    color: var(--white);
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

#adminNoticesList {
    margin-top: 2rem;
}

.admin-notice-item {
    background: var(--light);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-btn:hover {
    background: #c82333;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav {
        justify-content: center;
    }

    .notices-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% 20px;
        padding: 1.5rem;
    }
}

/* ==== Seção da Equipe ==== */
.team-section {
  padding: 60px 10%;
  text-align: center;
  background: #f9fafc;
  animation: fadeIn 1s ease;
}

.team-section .section-title {
  font-size: 1.8rem;
  color: #1e3c72;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.team-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.team-btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none; /* 👈 remove o sublinhado */
  display: inline-block;
}

/* Garante que o link não mude de cor ao clicar */
.team-btn:visited,
.team-btn:active,
.team-btn:focus {
  color: white;
  text-decoration: none;
}


/* Efeito de brilho no hover */
.team-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.team-btn:hover::before {
  left: 125%;
}

.team-btn:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Seção de Gestão Escolar */
.management-section {
  background-color: #f7f9fc;
  padding: 80px 0;
  text-align: center;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
  margin-top: 40px;
}

.management-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 25px;
  max-width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.management-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.management-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

.management-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 5px;
}

.management-card p {
  font-size: 1rem;
  color: #555;
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f5b914;
    --secondary: #d16a16;
    --dark: #1a1a2e;
    --light: #f2f2f2;
    --white: #ffffff;
    --success: #28a745;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* === CONTAINERS === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === NAVEGAÇÃO === */
nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* === BOTÃO ADMIN === */
.admin-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 1s ease-out;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeUp 1s ease-out 0.4s both;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* === TITULOS SEÇÕES === */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
    animation: fadeUp 0.8s ease-out both;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* === CARDS NOTÍCIAS E SOBRE === */
.about-card,
.notice-card,
.info-box,
.management-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.about-card:nth-child(1),
.notice-card:nth-child(1),
.info-box:nth-child(1),
.management-card:nth-child(1) { animation-delay: 0.2s; }
.about-card:nth-child(2),
.notice-card:nth-child(2),
.info-box:nth-child(2),
.management-card:nth-child(2) { animation-delay: 0.4s; }
.about-card:nth-child(3),
.notice-card:nth-child(3),
.info-box:nth-child(3),
.management-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === BOTÕES EQUIPE === */
.team-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.team-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75px;
    width: 50px;
    height: 100%;
    background: rgba(255,255,255,0.4);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.team-btn:hover::before {
    left: 125%;
}

.team-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* === SEÇÃO DE GESTÃO === */
.management-section {
    background-color: #f7f9fc;
    padding: 80px 20px;
    text-align: center;
    animation: fadeUp 1s ease-out both;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
    margin-top: 40px;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    nav { justify-content: center; }
    .notices-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
}
/* ==== Fundo da seção "Bem-vindo à Escola Alfredo Cardoso" ==== */
.hero {
    background-image: url("images/EE DR.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Escurece levemente a imagem para destacar o texto */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* Garante que o texto fique acima da imagem */
.hero h2,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}
/* ==== Fundo da seção "Bem-vindo à Escola Alfredo Cardoso" ==== */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

/* Camada com a imagem de fundo */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/EE DR.webp") center/cover no-repeat;
    filter: blur(2px); /* 👈 deixa a imagem levemente embaçada */
    transform: scale(1.05); /* evita bordas visíveis do blur */
    z-index: 0;
    opacity: 0.9;
}

/* Camada escura leve para contraste */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

/* Garante que o conteúdo fique visível acima do fundo */
.hero h2,
.hero p,
.hero .cta-button {
    position: relative;
    z-index: 1;
}
.address-link {
    color: inherit; 
    text-decoration: none;
}

.address-link:hover {
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px; /* garante alinhamento bonito */
}
