/* Global modern theme for SEMED public site */

:root {
    --brand-primary: #0f7a58;
    --brand-primary-strong: #0b6147;
    --brand-accent: #f0b63f;
    --brand-ink: #12392e;
    --brand-ink-soft: #4f6f63;
    --brand-surface: #ffffff;
    --brand-muted: #f2f8f5;
    --brand-border: #d5e7dd;
    --brand-shadow: 0 14px 34px rgba(10, 49, 36, 0.13);
}

body.semed-site {
    color: var(--brand-ink);
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(1200px 620px at -15% -20%, rgba(69, 157, 122, 0.2), transparent 58%),
        radial-gradient(1000px 560px at 110% 0%, rgba(240, 182, 63, 0.14), transparent 55%),
        linear-gradient(180deg, #f8fbf9 0%, #edf4f1 100%);
}

body.semed-site h1,
body.semed-site h2,
body.semed-site h3,
body.semed-site h4,
body.semed-site h5,
body.semed-site h6,
body.semed-site .section-title,
body.semed-site .navbar-brand {
    color: #103528;
    font-family: "Sora", sans-serif;
    letter-spacing: -0.02em;
}

body.semed-site p,
body.semed-site li,
body.semed-site label,
body.semed-site a,
body.semed-site button,
body.semed-site input,
body.semed-site select,
body.semed-site textarea {
    font-family: "Manrope", sans-serif;
}

body.semed-site a {
    color: var(--brand-primary-strong);
    transition: color 0.25s ease, transform 0.25s ease;
}

body.semed-site a:hover {
    color: #084c37;
}

#spinner {
    background: rgba(248, 251, 249, 0.96) !important;
    backdrop-filter: blur(6px);
}

#spinner .spinner-border {
    border-width: 0.34em;
    box-shadow: 0 0 0 8px rgba(15, 122, 88, 0.08);
}

.semed-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(15, 88, 64, 0.1);
    box-shadow: 0 14px 34px rgba(14, 50, 37, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.semed-navbar .navbar-brand {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.semed-navbar .navbar-brand img {
    width: min(190px, 100%);
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(11, 68, 49, 0.12));
}

.semed-navbar .navbar-nav {
    gap: 0.35rem;
}

.semed-navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: #1b4c3e;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
}

.semed-navbar .navbar-nav .nav-link:hover,
.semed-navbar .navbar-nav .nav-link.active {
    color: #0a6349;
    background: rgba(10, 99, 73, 0.09);
}

.semed-navbar .dropdown-menu {
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    box-shadow: var(--brand-shadow);
    padding: 0.5rem;
}

.semed-navbar .dropdown-item {
    border-radius: 12px;
    color: #224f41;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
}

.semed-navbar .dropdown-item:hover {
    background: #edf6f1;
    color: #0b6147;
}

.semed-navbar .navbar-toggler {
    border: none;
    border-radius: 14px;
    background: #edf5f1;
    padding: 0.5rem 0.75rem;
}

.semed-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.22rem rgba(11, 97, 71, 0.2);
}

.semed-navbar .nav-cta {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #11a56f 0%, #0c7a56 100%);
    box-shadow: 0 12px 24px rgba(9, 88, 62, 0.26);
    font-weight: 700;
    margin-right: 1rem;
}

.semed-navbar .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(9, 88, 62, 0.3);
}

.header-carousel {
    padding-inline: 0.7rem;
}

.header-carousel .owl-carousel-item {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
}

.header-carousel .owl-carousel-item .position-absolute {
    background: linear-gradient(118deg, rgba(6, 38, 29, 0.78) 0%, rgba(10, 62, 46, 0.62) 56%, rgba(0, 0, 0, 0.46) 100%) !important;
}

.home-hero-title {
    font-size: clamp(1.65rem, 3.8vw, 3rem);
    line-height: 1.1;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    max-width: 58ch;
}

.home-hero-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #14533f;
    font-weight: 700;
    padding: 0.52rem 1rem;
}

.home-hero-cta a:hover {
    background: #ffffff;
    color: #0b6147;
}

.section-title {
    display: inline-flex;
    align-items: center;
    font-size: clamp(1.12rem, 1.8vw, 1.45rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
    padding: 0;
}

.section-title.bg-white {
    background: transparent !important;
}

.section-title::before {
    content: "";
    position: static;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    margin-right: 0.6rem;
    background: linear-gradient(90deg, #10a56f 0%, #f0b63f 100%);
}

.section-title::after {
    display: none;
}

.features .icon-box,
.service-item,
.card {
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    box-shadow: 0 9px 25px rgba(13, 56, 42, 0.08);
}

.features .icon-box {
    min-height: 88px;
    gap: 0.75rem;
}

.features .icon-box i,
.features .icon-box img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(17, 133, 94, 0.11);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.features .icon-box h3 {
    line-height: 1.35;
    font-size: 1rem;
}

.features .icon-box h3 a {
    color: #133d30;
    font-weight: 700;
}

.features .icon-box:hover {
    transform: translateY(-4px);
    border-color: #b4d5c7;
    box-shadow: 0 15px 28px rgba(13, 56, 42, 0.13);
}

.home-news-media-frame,
.news-list-media-frame {
    border-radius: 22px;
    border: 1px solid var(--brand-border);
    box-shadow: 0 15px 30px rgba(13, 56, 42, 0.12);
    background: #e6efea;
}

.home-news-media-image,
.news-list-media-image,
.news-hero-image {
    border-radius: 22px;
}

.home-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-header,
.page-header-escolar {
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(13, 56, 42, 0.12);
}

.page-header-inner {
    background: linear-gradient(118deg, rgba(8, 48, 36, 0.82) 0%, rgba(9, 69, 50, 0.74) 100%);
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}

.btn.btn-success,
.btn.btn-primary {
    border-color: #0b6a4b;
    background: linear-gradient(135deg, #10a56f 0%, #0d7957 100%);
}

.btn.btn-success:hover,
.btn.btn-primary:hover {
    transform: translateY(-1px);
    border-color: #0a5e44;
    background: linear-gradient(135deg, #12af76 0%, #0b6a4b 100%);
}

.btn.btn-link {
    font-weight: 600;
}

.form-control,
.form-select,
select.form-control {
    border: 1px solid #cfe0d7;
    border-radius: 12px;
    min-height: 44px;
    background-color: #fbfdfc;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: #8ec8b1;
    box-shadow: 0 0 0 0.22rem rgba(16, 165, 111, 0.18);
    background-color: #ffffff;
}

.table {
    border-radius: 14px;
    overflow: hidden;
}

.table thead th {
    background: #f1f8f4;
    color: #20473a;
    border-bottom-color: #d5e7dd;
}

.footer {
    margin-top: 4.2rem !important;
    padding-top: 3.2rem !important;
    background: linear-gradient(132deg, #0b543d 0%, #0f7a58 56%, #1aa274 100%) !important;
    position: relative;
    overflow: hidden;
}

.footer::before,
.footer::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.footer::before {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 70%);
    top: -170px;
    right: -130px;
}

.footer::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240, 182, 63, 0.22) 0%, rgba(240, 182, 63, 0) 72%);
    bottom: -180px;
    left: -100px;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer .footer-panel {
    background: rgba(7, 38, 28, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 1.2rem 1.2rem 1rem;
    backdrop-filter: blur(2px);
}

.footer .footer-panel h4 {
    letter-spacing: 0.01em;
}

.footer .btn.btn-social {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.44);
}

.footer .btn.btn-social:hover {
    color: #09553d;
    background: #ffffff;
}

.footer .btn.btn-link {
    color: rgba(255, 255, 255, 0.95);
}

.footer iframe[src*="facebook.com/plugins/page.php"] {
    border-radius: 16px;
    min-height: 400px;
    height: 400px !important;
    background: rgba(255, 255, 255, 0.08);
}

.footer .map-responsive {
    padding-bottom: 0;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
}

.footer .map-responsive iframe {
    width: 100% !important;
    height: 400px !important;
    position: static;
}

.footer .copyright {
    margin-top: 1rem;
    border-top-color: rgba(255, 255, 255, 0.22);
}

.back-to-top {
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(7, 58, 41, 0.26);
}

@media (max-width: 991.98px) {
    .semed-navbar .navbar-collapse {
        margin: 0.5rem 1rem 1rem;
        padding: 0.9rem;
        border-radius: 16px;
        border: 1px solid #ddece5;
        background: rgba(255, 255, 255, 0.98);
    }

    .semed-navbar .navbar-nav .nav-link {
        border-radius: 12px;
        padding: 0.6rem 0.85rem;
    }

    .header-carousel .owl-carousel-item {
        border-radius: 18px;
    }

    .footer .footer-panel {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .home-hero-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .footer iframe[src*="facebook.com/plugins/page.php"] {
        min-height: 320px;
        height: 320px !important;
    }

    .footer .map-responsive {
        height: 320px;
    }

    .footer .map-responsive iframe {
        height: 320px !important;
    }
}

