:root {
    --bg: #f5f8ff;
    --bg-soft: #eaf1ff;
    --surface: #ffffff;
    --surface-2: #f8fbff;
    --text: #10213e;
    --muted: #4b5f82;
    --accent: #0d47a1;
    --accent-soft: #1f68e0;
    --accent-vivid: #00a7b5;
    --gold: #c49a2c;
    --danger: #b91c1c;
    --success: #15803d;
    --shadow: 0 12px 30px rgba(16, 33, 62, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--accent-soft);
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe8fb;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant Garamond', serif;
    color: #0a285f;
}

.logo img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #c7d7f9;
    box-shadow: 0 6px 14px rgba(16, 33, 62, 0.15);
    flex-shrink: 0;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.menu-toggle {
    background: #fff;
    border: 1px solid #c7d7f9;
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.main-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    max-width: 100%;
    background: #fff;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dfe8fb;
}

.main-nav.open {
    display: grid;
    gap: 0.5rem;
}

.main-nav a {
    color: var(--text);
    padding: 0.4rem 0;
    font-weight: 500;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    border-bottom: 1px solid #dfe8fb;
}

.hero-slider::before,
.hero-slider::after {
    content: '';
    position: absolute;
    inset: -10%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.46;
    background: radial-gradient(circle at 20% 30%, rgba(196, 154, 44, 0.26), transparent 48%),
        radial-gradient(circle at 82% 72%, rgba(0, 167, 181, 0.2), transparent 45%);
    animation: heroGlowDrift 16s ease-in-out infinite alternate;
}

.hero-slider::after {
    animation-duration: 22s;
    animation-direction: alternate-reverse;
    opacity: 0.32;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    filter: saturate(1.06) contrast(1.02) brightness(0.8);
    transition: opacity 1.15s ease, transform 8.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 1.15s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1) contrast(1) brightness(0.95);
}

.hero-overlay {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(118deg, rgba(4, 20, 49, 0.78), rgba(7, 50, 95, 0.58), rgba(4, 86, 109, 0.36));
    color: #fff;
    z-index: 2;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.38;
    animation: heroOrbFloat 11s ease-in-out infinite;
}

.hero-orb-1 {
    width: 260px;
    height: 260px;
    top: 10%;
    left: -6%;
    background: radial-gradient(circle, rgba(196, 154, 44, 0.52), rgba(196, 154, 44, 0));
}

.hero-orb-2 {
    width: 320px;
    height: 320px;
    right: -8%;
    top: 20%;
    background: radial-gradient(circle, rgba(0, 167, 181, 0.52), rgba(0, 167, 181, 0));
    animation-delay: 1.8s;
}

.hero-orb-3 {
    width: 220px;
    height: 220px;
    left: 38%;
    bottom: -10%;
    background: radial-gradient(circle, rgba(31, 104, 224, 0.38), rgba(31, 104, 224, 0));
    animation-delay: 0.9s;
}

.hero {
    position: relative;
    z-index: 3;
    padding: 5.7rem 0 3.9rem;
}

.hero h1,
.hero .hero-intro,
.hero .hero-highlights,
.hero .btn,
.hero-controls {
    opacity: 0;
    transform: translateY(22px);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 3.7vw, 2.95rem);
    line-height: 1.05;
    margin: 0 0 0.35rem;
    max-width: 880px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
    color: #edf4ff;
    max-width: 760px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.hero-intro {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.hero-highlights {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    max-width: 840px;
}

.hero-highlights p {
    margin: 0;
    font-size: 0.95rem;
    padding: 0.4rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(7, 26, 58, 0.34);
}

.hero.hero-content-in h1 {
    animation: heroContentReveal 0.7s ease forwards;
}

.hero.hero-content-in .hero-intro {
    animation: heroContentReveal 0.7s ease 0.14s forwards;
}

.hero.hero-content-in .hero-highlights {
    animation: heroContentReveal 0.7s ease 0.24s forwards;
}

.hero.hero-content-in .btn {
    animation: heroContentReveal 0.7s ease 0.34s forwards;
}

.hero.hero-content-in .hero-controls {
    animation: heroContentReveal 0.7s ease 0.44s forwards;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.hero-dot {
    position: relative;
    width: 48px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.hero-dot-progress {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(0, 167, 181, 0.95));
}

.hero-dot.active {
    border-color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.22);
}

.hero-dot.active .hero-dot-progress {
    animation: heroDotProgress var(--hero-progress-duration, 6800ms) linear forwards;
}

.section {
    padding: 2.4rem 0;
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin: 0 0 1rem;
}

.section-intro {
    display: grid;
    gap: 0.35rem;
    max-width: 780px;
    margin-bottom: 1rem;
}

.section-intro h2,
.section-intro p {
    margin: 0;
}

.section-intro .meta {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.section-intro-compact {
    margin-bottom: 0;
}

.home-academia-highlight {
    background: linear-gradient(130deg, #0a285f, #13468f 56%, #0c6f85);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f5f9ff;
    overflow: hidden;
}

.home-academia-highlight .meta {
    color: #d2e6ff;
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-academia-highlight h2 {
    color: #fff;
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
    line-height: 1.15;
}

.home-academia-highlight p {
    color: #edf5ff;
    font-size: 1rem;
    line-height: 1.75;
}

.home-academia-copy {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(5, 21, 52, 0.42), rgba(10, 46, 97, 0.18));
    backdrop-filter: blur(6px);
    box-shadow: 0 16px 30px rgba(3, 15, 37, 0.18);
}

.home-academia-copy .meta,
.home-academia-copy h2,
.home-academia-copy p {
    text-shadow: 0 6px 18px rgba(2, 10, 26, 0.28);
}

.home-academia-copy .btn {
    margin-top: 0.35rem;
}

.home-academia-grid {
    display: grid;
    gap: 1rem;
    align-items: center;
}

.home-academia-visuals {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-academia-visuals img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 14px 28px rgba(1, 15, 40, 0.3);
}

.home-academia-visuals img:first-child {
    object-position: center 20%;
}

.home-academia-visuals img:last-child {
    object-position: 70% center;
}

.home-cabinet-grid .card h3 {
    margin-bottom: 0.4rem;
}

.home-cabinet-grid .card p {
    margin-top: 0;
}

.cards {
    display: grid;
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid #dbe6ff;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #9ec0ff;
    box-shadow: 0 18px 34px rgba(13, 71, 161, 0.18);
}

.card img {
    width: 100%;
    border-radius: 10px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #e0eaff;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    background-size: 150% 100%;
    background-position: 0% 50%;
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.2);
    transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.42s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.35s ease,
        background-position 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
}

.btn,
.btn:hover,
.btn:focus-visible,
.btn:active {
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(13, 71, 161, 0.26);
    filter: brightness(1.04);
    background-position: 100% 50%;
}

.btn:active {
    transform: translateY(0);
    transition-duration: 0.16s;
    box-shadow: 0 5px 12px rgba(13, 71, 161, 0.22);
}

.btn-secondary {
    background: #fff;
    color: var(--accent);
    border: 1px solid #a8c4ff;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-secondary:active {
    color: var(--accent);
}

.meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.filters {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

select,
input,
textarea {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid #c7d7f9;
    background: #fff;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #6ea0ff;
    box-shadow: 0 0 0 3px rgba(31, 104, 224, 0.15);
}

textarea {
    min-height: 130px;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 1rem;
}

.site-footer {
    margin-top: 2rem;
    background: linear-gradient(120deg, #0b2d68, #07325f 52%, #04566d);
    color: #f2f7ff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.4rem 0 1.2rem;
}

.footer-grid {
    display: grid;
    gap: 1rem;
}

.site-footer h4 {
    margin-top: 0;
    color: #fff;
}

.site-footer a {
    color: #d8e7ff;
}

.site-footer .meta {
    color: #c4d8f7;
}

.footer-brand {
    display: grid;
    gap: 0.45rem;
}

.footer-logo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.footer-newsletter .btn {
    width: 100%;
    max-width: 230px;
    background: linear-gradient(90deg, #f2b731, #d3931b);
    color: #1f2a44;
}

.copyright {
    text-align: center;
    color: #d8e7ff;
    margin: 1rem 0 0;
}

.flash {
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.flash-success {
    background: rgba(21, 128, 61, 0.12);
    border: 1px solid var(--success);
}

.flash-error {
    background: rgba(185, 28, 28, 0.2);
    border: 1px solid var(--danger);
}

.admin-shell {
    display: grid;
    gap: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    border: 1px solid #dbe6ff;
    padding: 0.6rem;
    text-align: left;
}

.toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.editor {
    min-height: 160px;
    padding: 0.7rem;
    border: 1px solid #c7d7f9;
    border-radius: 8px;
    background: #fff;
}

.hidden {
    display: none;
}

.map-wrap iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    border-radius: 10px;
}

.fade-up {
    opacity: 0.84;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.blog-shell {
    display: grid;
    gap: 1.2rem;
}

.blog-hero-panel {
    display: grid;
    gap: 1.1rem;
    background: linear-gradient(125deg, #0a285f, #13468f 58%, #0e6a7f);
    color: #f6f9ff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.blog-hero-top {
    display: grid;
    gap: 1rem;
}

.blog-hero-panel h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.blog-hero-panel p {
    margin: 0.4rem 0 0;
    color: #e8f2ff;
}

.blog-hero-panel .meta {
    color: #d3e6ff;
}

.blog-filter-form {
    display: grid;
    gap: 0.4rem;
}

.blog-filter-form .meta {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-hero-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.blog-hero-panel .filters,
.blog-filter-form {
    margin: 0;
}

.blog-hero-metrics {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.blog-hero-metrics article {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.7rem 0.75rem;
    display: grid;
    gap: 0.25rem;
}

.blog-hero-metrics strong {
    font-size: 1.15rem;
    color: #fff;
}

.blog-cards {
    align-items: stretch;
    gap: 1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e4ff;
    background: linear-gradient(155deg, #fff, #f7fbff);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #86aeff;
    box-shadow: 0 20px 38px rgba(13, 71, 161, 0.22);
}

.blog-card-media {
    position: relative;
}

.blog-card-media img {
    margin: 0;
    border-radius: 0;
    border: 0;
    height: 225px;
}

.blog-card-tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a285f;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 40, 95, 0.12);
}

.blog-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.blog-card-body h3 {
    margin: 0;
    line-height: 1.34;
}

.blog-card-body p {
    margin: 0;
}

.blog-card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-card-featured {
    border-color: #91b3f8;
    background: linear-gradient(155deg, #ffffff, #f2f8ff);
}

.blog-card-featured .blog-card-tag {
    background: linear-gradient(90deg, #f2b731, #ffd976);
    color: #442e00;
    border-color: rgba(68, 46, 0, 0.2);
}

.blog-card-featured .blog-card-media img {
    height: 300px;
}

.blog-card-featured .blog-card-body h3 {
    font-size: clamp(1.25rem, 2.7vw, 1.7rem);
}

.blog-empty-state {
    text-align: center;
    border-style: dashed;
    border-color: #acc4f2;
    box-shadow: none;
}

.empty-state-card {
    text-align: center;
    border-style: dashed;
    border-color: #9ebbf0;
    box-shadow: none;
    grid-column: 1 / -1;
    background: linear-gradient(150deg, #ffffff, #f3f9ff);
}

.empty-state-media {
    max-width: 520px;
    margin: 0 auto 0.85rem;
    border-radius: 14px;
    border: 1px solid #d2e2ff;
    box-shadow: 0 16px 30px rgba(13, 71, 161, 0.12);
    object-fit: cover;
}

.empty-state-progress {
    width: min(360px, 100%);
    height: 12px;
    margin: 0.8rem auto 0;
    border-radius: 999px;
    border: 1px solid #c6d8fb;
    background: #e7f0ff;
    overflow: hidden;
    position: relative;
}

.empty-state-progress-bar {
    width: 38%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d47a1, #00a7b5 62%, #c49a2c);
    animation: emptyStateProgress 2.4s ease-in-out infinite alternate;
}

.blog-rating-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.1rem;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .star {
    font-size: 1.05rem;
    line-height: 1;
    color: #d2d9ea;
}

.rating-stars .star.full {
    color: #f2b731;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #f2b731 50%, #d2d9ea 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.92rem;
    padding-top: 0.1rem;
}

.blog-stats strong {
    color: #123f87;
}

.blog-actions {
    margin-top: auto;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-like-btn {
    min-width: 138px;
}

.blog-like-btn .blog-like-icon {
    margin-right: 0.3rem;
}

.blog-like-btn.liked {
    border-color: #f2b731;
    color: #7a5a00;
    background: #fff8e5;
    box-shadow: 0 6px 14px rgba(242, 183, 49, 0.22);
}

.blog-like-btn.loading {
    opacity: 0.7;
}

.blog-detail-shell {
    display: grid;
    gap: 1rem;
}

.blog-detail-grid {
    display: grid;
    gap: 1rem;
}

.blog-article-main {
    padding: 1.15rem;
}

.blog-article-main h1 {
    margin: 0.15rem 0 0.5rem;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

.blog-article-main img {
    margin-top: 0.4rem;
    margin-bottom: 0.9rem;
    height: 340px;
}

.blog-article-meta {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    margin: 0;
}

.blog-article-main .blog-excerpt {
    font-size: 1.06rem;
    margin: 0 0 0.85rem;
    padding-left: 0.75rem;
    border-left: 3px solid #8eb0f0;
    color: #17386b;
}

.blog-content {
    margin-top: 0.35rem;
}

.blog-content p {
    margin-top: 0;
    margin-bottom: 0.95rem;
    line-height: 1.72;
}

.blog-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.blog-detail-actions {
    margin-bottom: 0.25rem;
}

.blog-article-aside {
    align-self: start;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid #d5e4ff;
    background: linear-gradient(145deg, #ffffff, #f4f9ff);
}

.blog-article-aside h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #0b2f6d;
}

.blog-article-metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.blog-article-metrics li {
    border-bottom: 1px solid #deebff;
    padding-bottom: 0.45rem;
    color: #1b3f73;
}

.blog-article-metrics li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.share-box {
    border: 1px solid #dbe6ff;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.share-box h3 {
    margin-top: 0;
}

.share-box-compact {
    margin-bottom: 0;
}

.share-links {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.share-links .btn {
    padding: 0.45rem 0.78rem;
    font-size: 0.88rem;
}

.blog-comment-anchor {
    text-align: center;
}

.comment-section h2 {
    margin-top: 0;
}

.comment-form {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.comment-login-box {
    border: 1px dashed #97b9ff;
    border-radius: 12px;
    background: #f5f9ff;
    padding: 0.95rem;
}

.comment-list {
    display: grid;
    gap: 0.7rem;
}

.comment-item {
    border: 1px solid #dbe6ff;
    border-radius: 10px;
    padding: 0.78rem 0.9rem;
    background: #fff;
    border-left: 4px solid #8fb2f4;
}

.blog-auth-shell {
    display: grid;
    place-items: center;
}

.blog-auth-card {
    width: min(680px, 100%);
}

.contrib-shell {
    display: grid;
    gap: 1rem;
}

.contrib-hero {
    background: linear-gradient(130deg, #0a285f, #13468f 52%, #0c6f85);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f5f9ff;
}

.contrib-hero h1 {
    margin-top: 0.2rem;
    color: #fff;
}

.contrib-hero .meta,
.contrib-hero p {
    color: #e6f0ff;
}

.contrib-note {
    border-left: 4px solid #f2b731;
    padding-left: 0.7rem;
}

.contrib-grid {
    align-items: start;
}

.contrib-form {
    display: grid;
    gap: 0.6rem;
}

.academia-hero {
    background: linear-gradient(130deg, #0a285f, #133f82 52%, #0a697d);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f6f9ff;
}

.academia-hero-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.academia-hero h1 {
    margin-top: 0.2rem;
    color: #fff;
}

.academia-hero .meta,
.academia-hero p {
    color: #e5f0ff;
}

.academia-hero-copy p {
    margin: 0 0 0.9rem;
}

.academia-lead,
.publication-lead {
    font-size: 1.05rem;
    line-height: 1.8;
}

.academia-hero-side {
    display: grid;
    gap: 0.85rem;
}

.academia-highlight-card,
.publication-hero-note {
    padding: 1rem;
    border-radius: 16px;
}

.academia-highlight-card {
    background: linear-gradient(145deg, rgba(5, 24, 58, 0.52), rgba(7, 58, 90, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 30px rgba(3, 15, 37, 0.18);
}

.academia-highlight-card h2 {
    margin-bottom: 0.7rem;
    color: #fff;
}

.academia-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.academia-hero-media {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.academia-hero-media img {
    width: 100%;
    min-height: 190px;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 26px rgba(2, 13, 31, 0.24);
    margin-bottom: 0;
}

.academia-pillars .card,
.academia-activity-grid .card {
    background: linear-gradient(165deg, #ffffff, #f4f8ff);
}

.academia-pillars .card h3,
.academia-activity-grid .card h3,
.publication-audience-item h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.academia-pillars .card p,
.academia-activity-grid .card p,
.publication-audience-item p {
    margin: 0;
}

.academia-program-card {
    background: linear-gradient(150deg, #ffffff, #f2f8ff);
    border: 1px solid #c6dafd;
}

.academia-module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.academia-module-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: #f4f8ff;
    border: 1px solid #cfe0ff;
    color: #123361;
    font-weight: 600;
}

.academia-vision-card {
    background: linear-gradient(135deg, #0a285f, #0c5c76);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.academia-vision-card h2,
.academia-vision-card p,
.academia-vision-card .meta {
    color: #f2f8ff;
}

.academia-slogan-card {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.academia-slogan {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.05;
    color: #0a285f;
}

.publication-hero {
    background: linear-gradient(135deg, #ffffff, #eef5ff 45%, #e7f7fb);
    border: 1px solid #c6dafd;
}

.publication-hero-grid,
.publication-offer-grid,
.academia-vision-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.publication-hero-copy p {
    margin: 0 0 0.9rem;
}

.publication-hero-side {
    display: grid;
    gap: 0.85rem;
}

.publication-hero-cover {
    width: 100%;
    min-height: 340px;
    border-radius: 16px;
    border: 1px solid #d9e7ff;
    background: #0a285f;
    box-shadow: 0 16px 28px rgba(13, 71, 161, 0.16);
    margin-bottom: 0;
}

.publication-hero-animation {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 183, 49, 0.2), transparent 28%),
        radial-gradient(circle at 78% 20%, rgba(0, 167, 181, 0.24), transparent 32%),
        linear-gradient(155deg, #0a285f, #133f82 52%, #0a697d);
}

.publication-hero-animation canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.publication-hero-animation-fallback {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 34%);
}

.publication-hero-note {
    background: #fff;
    border: 1px solid #dbe6ff;
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.08);
}

.publication-hero-note .academia-kicker {
    background: #f0f6ff;
    border-color: #d1e1ff;
    color: #0d47a1;
}

.publication-hero-note p,
.publication-bridge-card p {
    margin: 0;
}

.feature-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.15rem;
}

.feature-list li::marker {
    color: var(--accent-soft);
}

.publication-audience {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.publication-audience-item {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: linear-gradient(160deg, #f7faff, #edf4ff);
    border: 1px solid #d9e5ff;
}

.publication-catalog-head {
    margin-bottom: 1rem;
}

.academia-grid .card img {
    height: 250px;
}

.academia-cta {
    background: linear-gradient(150deg, #ffffff, #f2f8ff);
    border: 1px solid #c6dafd;
}

.academia-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.team-card img {
    height: 330px;
    object-position: center top;
}

.team-card {
    display: grid;
    gap: 0.1rem;
    align-content: start;
}

.team-card-image-left {
    object-position: center 18%;
}

.team-card-image-right {
    object-position: 72% center;
}

.team-card p {
    margin: 0 0 0.45rem;
}

.team-card p:last-child {
    margin-bottom: 0;
}

.team-card strong {
    color: #0a285f;
}

.team-contact-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #d8e5ff;
    background: linear-gradient(160deg, #f8fbff, #eef4ff);
}

.team-contact-list p {
    margin: 0;
}

.team-contact-list a {
    word-break: break-word;
}

.team-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.auth-tabs {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.auth-tabs a {
    padding: 0.5rem 0.75rem;
    border: 1px solid #bfd3ff;
    border-radius: 10px;
    color: var(--accent);
    background: #f4f8ff;
}

.auth-tabs a.active {
    background: #dce9ff;
    border-color: #96b8ff;
    color: #06285e;
}

.auth-form {
    display: grid;
    gap: 0.55rem;
}

.lawyer-modal {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #bfd3ff;
    background: linear-gradient(145deg, #ffffff, #f4f8ff);
}

.success-icon-wrap {
    width: 112px;
    height: 112px;
    margin: 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(242, 183, 49, 0.3), rgba(13, 71, 161, 0.16));
    animation: modalIconPulse 1.8s ease-in-out infinite;
}

.success-icon-wrap i {
    font-size: 4rem;
    color: #0d47a1;
}

.admin-pro-page {
    display: grid;
    gap: 1rem;
}

.admin-pro-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(130deg, #0a285f, #133f82 52%, #0a697d);
    color: #f2f8ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-pro-top .meta {
    color: #d1e3ff;
}

.admin-pro-top h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #fff;
}

.admin-pro-top-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-kpi-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-kpi-card {
    background: linear-gradient(140deg, #fff, #f3f8ff);
}

.admin-kpi-card h3 {
    margin: 0.25rem 0 0;
    font-size: 1.9rem;
    color: #0a285f;
}

.admin-table-card h2 {
    margin: 0;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.admin-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.admin-status-chip {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.admin-status-chip.is-published {
    color: #075f38;
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.35);
}

.admin-status-chip.is-hidden {
    color: #8a2d0b;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.36);
}

.admin-operation-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f4f9ff);
    box-shadow: 0 24px 48px rgba(8, 28, 66, 0.3);
}

.admin-operation-head {
    background: linear-gradient(110deg, #0a285f, #13468f 55%, #0b7183);
    color: #fff;
    border: 0;
    padding: 1rem 1.2rem;
}

.admin-operation-badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 71, 161, 0.25);
    background: #ebf3ff;
    color: #0d47a1;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-operation-icon-wrap {
    width: 120px;
    height: 120px;
    margin: 0.8rem auto 0.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(196, 154, 44, 0.34), rgba(13, 71, 161, 0.2));
    border: 1px solid rgba(13, 71, 161, 0.25);
    animation: modalIconPulse 1.8s ease-in-out infinite;
}

.admin-operation-icon-wrap i {
    font-size: 4.1rem;
    color: #0d47a1;
    text-shadow: 0 7px 16px rgba(13, 71, 161, 0.22);
}

.admin-operation-message {
    color: #274a7f;
}

.admin-op-progress {
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: #dfebff;
}

.admin-op-progress .progress-bar {
    background: linear-gradient(90deg, #0d47a1, #00a7b5, #c49a2c);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroGlowDrift {
    0% {
        transform: translate3d(-1.5%, -1.5%, 0) scale(1);
    }
    100% {
        transform: translate3d(1.5%, 1.5%, 0) scale(1.08);
    }
}

@keyframes heroOrbFloat {
    0% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -12px, 0);
    }
    100% {
        transform: translate3d(0, 8px, 0);
    }
}

@keyframes heroContentReveal {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroDotProgress {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes modalIconPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0.28);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 18px rgba(13, 71, 161, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0);
    }
}

@keyframes emptyStateProgress {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(162%);
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: flex;
        gap: 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        position: static;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .main-nav a {
        position: relative;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--accent-vivid));
        transition: width 0.3s ease;
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-hero-top {
        grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
        align-items: end;
    }

    .home-academia-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
    }

    .academia-hero-grid,
    .publication-hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    }

    .academia-vision-grid,
    .publication-offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .blog-card-featured .blog-card-media img {
        height: 100%;
    }

    .blog-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }

    .blog-article-aside {
        position: sticky;
        top: 92px;
    }

    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1140px) {
    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #dfe8fb;
        box-shadow: 0 12px 28px rgba(16, 33, 62, 0.14);
        z-index: 1000;
    }

    .main-nav.open {
        display: grid;
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo span {
        font-size: 1.15rem;
    }

    .hero-slider,
    .hero-overlay {
        min-height: 62vh;
    }

    .hero {
        padding: 4.6rem 0 3rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .hero-intro,
    .hero-highlights p {
        font-size: 0.94rem;
    }

    .hero-orb-1 {
        width: 180px;
        height: 180px;
    }

    .hero-orb-2 {
        width: 200px;
        height: 200px;
    }

    .hero-orb-3 {
        width: 150px;
        height: 150px;
    }

    .blog-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-featured {
        display: flex;
    }

    .blog-article-main img {
        height: 240px;
    }

    .team-card img {
        height: 250px;
    }

    .blog-detail-actions .btn,
    .blog-comment-anchor {
        width: 100%;
    }

    .blog-actions,
    .blog-hero-actions,
    .academia-cta-actions,
    .share-links,
    .admin-pro-top-actions,
    .admin-actions-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .home-academia-visuals {
        grid-template-columns: 1fr;
    }

    .academia-hero-media {
        grid-template-columns: 1fr;
    }

    .home-academia-visuals img {
        height: 210px;
    }

    .home-academia-copy {
        padding: 1rem;
    }

    .publication-hero-cover {
        min-height: 300px;
    }

    .academia-module-list span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .admin-pro-top {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .fade-up,
    .hero-orb,
    .hero-slider::before,
    .hero-slider::after {
        animation: none !important;
        transition: none !important;
    }

    .hero h1,
    .hero .hero-intro,
    .hero .hero-highlights,
    .hero .btn,
    .hero-controls {
        opacity: 1;
        transform: none;
    }

    .hero-dot.active .hero-dot-progress {
        transform: scaleX(1);
        animation: none !important;
    }
}
