:root {
    --color-primary: #0099B0;
    --color-secondary: #BED62F;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-text: #333333;
    --font-heading: "Playfair Display", serif;
    --font-body: "Montserrat", sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    padding-top: 80px;
}

section[id] {
    scroll-margin-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

.text-secondary-custom {
    color: var(--color-secondary) !important;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.navbar-brand img {
    max-height: 65px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text) !important;
    margin-left: 15px;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

.hero-section {
    height: 95vh;
    background: linear-gradient(rgba(0, 153, 176, 0.4), rgba(0, 153, 176, 0.6)),
        url("https://images.unsplash.com/photo-1545989253-02cc26577f88?q=80&w=1920&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: -80px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-custom {
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid var(--color-primary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 153, 176, 0.3);
}

.btn-custom:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text);
    transform: translateY(-3px);
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title.section-title-left {
    text-align: left;
}

.section-title.section-title-left::after {
    margin-left: 0;
    margin-right: auto;
}

.program-card {
    border: none;
    background: #fff;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid transparent;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--color-secondary);
}

.program-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.program-card:hover .program-icon {
    color: var(--color-secondary);
}

.program-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.book-container {
    background-color: #fff;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-left: 8px solid var(--color-secondary);
}

.list-check-custom i {
    color: var(--color-secondary);
    margin-right: 10px;
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 0 0 3px var(--color-primary), 0 0 0 8px var(--color-secondary);
    padding: 5px;
    transition: transform 0.4s;
    background-color: #fff;
}

.team-member--clickable {
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
    cursor: pointer;
    text-align: center;
    outline: none;
}

.team-member--clickable:focus {
    outline: none;
}

.team-member--clickable:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 176, 0.25);
    border-radius: 16px;
}

.team-member__bio {
    background: #fff;
    border-left: 6px solid var(--color-secondary);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.team-member__bio p:last-child {
    margin-bottom: 0;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member--compact img {
    width: 140px;
    height: 140px;
}

.team-role {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.contact-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    aspect-ratio: 1 / 1;
    background-color: rgba(0, 153, 176, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--color-primary);
}

footer {
    background-color: #222;
    color: #bbb;
    padding: 70px 0 30px;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.footer-brand {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-secondary) !important;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 30px;
    font-size: 0.9rem;
}

.footer-social a {
    color: #bbb;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-section {
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
    padding: 90px 0;
}

.social-section::before {
    content: "";
    position: absolute;
    inset: -200px -200px auto auto;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center,
        rgba(0, 153, 176, 0.2) 0%,
        rgba(190, 214, 47, 0.15) 45%,
        rgba(255, 255, 255, 0) 70%);
    filter: blur(2px);
    transform: rotate(18deg);
    pointer-events: none;
}

.social-section::after {
    content: "";
    position: absolute;
    left: -160px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center,
        rgba(190, 214, 47, 0.2) 0%,
        rgba(0, 153, 176, 0.1) 45%,
        rgba(255, 255, 255, 0) 70%);
    transform: rotate(-12deg);
    pointer-events: none;
}

.social-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-bottom: 1.25rem !important;
}

.social-lead {
    max-width: 38ch;
    color: #666;
}

.social-grid {
    position: relative;
    z-index: 1;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: #fff;
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.social-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg,
        rgba(0, 153, 176, 0.55),
        rgba(190, 214, 47, 0.55));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 153, 176, 0.25);
}

.social-card:hover::before {
    opacity: 1;
}

.social-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icon.ig {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcaf45);
}

.social-icon.fb {
    background: linear-gradient(135deg, #1877f2, #0b5fcc);
}

.social-icon.wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-icon.yt {
    background: linear-gradient(135deg, #ff3d3d, #cc0000);
}

.social-icon.tg {
    background: linear-gradient(135deg, #2aabee, #229ed9);
}

.social-icon.tw {
    background: linear-gradient(135deg, #1da1f2, #0b84d7);
}

.social-icon.in {
    background: linear-gradient(135deg, #0a66c2, #004182);
}

.social-icon.blog {
    background: linear-gradient(135deg, #0099b0, #bed62f);
}

.social-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 6px;
    min-width: 0;
}

.social-label {
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #555;
}

.social-handle {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card:hover .social-handle {
    color: var(--color-text);
}

.social-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--color-text);
    opacity: 0.85;
}

.social-cta i {
    font-size: 0.95rem;
    color: var(--color-primary);
    transition: transform 0.25s ease;
}

.social-card:hover .social-cta i {
    transform: translateX(3px) translateY(-3px);
    color: var(--color-secondary);
}

@media (max-width: 575.98px) {
    .social-section {
        padding: 70px 0;
    }

    .social-lead {
        max-width: 100%;
    }
}

.float-wa {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-wa:hover {
    background-color: var(--color-primary);
    transform: scale(1.1) rotate(15deg);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.slider-section {
    background-color: var(--color-bg-alt);
}

.slider-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    max-width: 720px;
}

.slider-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.slider-section .carousel-item {
    padding: 1.5rem 0;
}

.slider-section .carousel-control-prev-icon,
.slider-section .carousel-control-next-icon {
    filter: invert(1);
}

/* Publications listing */
.publication-search {
    margin: 0 auto 2.5rem;
}

.publication-search__group {
    max-width: 520px;
    margin: 0 auto;
}

.publication-search__addon {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.publication-search__input {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 0;
    border-radius: 0 999px 999px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1.2rem;
}

.publication-search__input:focus {
    border-color: rgba(0, 153, 176, 0.35);
    box-shadow: 0 10px 24px rgba(0, 153, 176, 0.15);
}

.publication-card {
    background: #fff;
    border-radius: 24px;
    border-left: 8px solid var(--color-secondary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
    border-left-color: var(--color-primary);
}

.publication-card__media {
    height: 220px;
    background: #f7f8fa;
    overflow: hidden;
    position: relative;
}

.publication-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.publication-card__placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.publication-card__placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    opacity: 0.12;
}

.publication-card__placeholder span {
    position: relative;
    z-index: 1;
}

.publication-card__body {
    padding: 1.5rem;
}

@media (max-width: 575.98px) {
    .publication-card__media {
        height: 200px;
    }
}

.news-carousel-frame {
    border-radius: 18px;
    overflow: hidden;
    background: #f7f8fa;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-carousel__image {
    height: 420px;
    object-fit: cover;
}

.news-carousel-placeholder {
    height: 420px;
}

@media (max-width: 767.98px) {
    .news-carousel__image {
        height: 260px;
    }

    .news-carousel-placeholder {
        height: 260px;
    }
}

.news-share__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.news-share__label {
    font-weight: 700;
    color: var(--color-text);
}

.news-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.news-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f8fa;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-share__btn.socicon::before {
    margin-right: 0.45rem;
}

.news-share__btn:hover,
.news-share__btn:focus {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(0, 153, 176, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

/* PDF viewer */
.pdf-viewer-section {
    background-color: var(--color-bg-alt);
}

.pdf-viewer-card {
    background: #fff;
    border-left: 8px solid var(--color-secondary);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.pdf-viewer-frame {
    background: #f7f8fa;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: auto;
}

.pdf-viewer {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.pdf-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pdf-zoom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pdf-zoom input[type="range"] {
    width: 180px;
}

.pdf-zoom .btn-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.pdf-zoom .btn-link:hover {
    color: var(--color-secondary);
}

.pdf-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pdf-pager span {
    font-weight: 600;
    color: var(--color-text);
}

.pdf-empty {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pdf-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(0, 153, 176, 0.12);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .pdf-viewer-card {
        padding: 1.5rem;
    }

    .pdf-viewer-frame {
        padding: 1rem;
    }

    .pdf-zoom input[type="range"] {
        width: 100%;
    }

    .pdf-controls {
        align-items: flex-start;
    }

    .pdf-pager {
        width: 100%;
        justify-content: space-between;
    }
}

@media print {
    .pdf-controls,
    .pdf-viewer-frame {
        display: none !important;
    }
}
