:root {
    --primary-aqua: #2bb9c0;
    --light-aqua: #e0f7fa;
    --medium-aqua: #4dd0e1;
    --dark-aqua: #00838f;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #f8fcfd;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Animated Aqua Background */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-aqua-bg {
    background: linear-gradient(270deg, var(--primary-aqua), var(--dark-aqua), var(--medium-aqua), var(--primary-aqua));
    background-size: 300% 300%;
    animation: gradient-shift 10s ease infinite;
}

/* Header Styles */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.15);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px; /* space between logo and text */
    padding: 0.5rem 0; /* optional: adjust vertical padding */
}

.brand-logo {
    height: 90px;        /* adjust to your desired height */
    width: auto;
    max-width: 150px;    /* optional: prevent it from getting too big */
}

.brand-text {
    font-weight: bold;
    font-size: 1.25rem;
}

/* Optional: hide text on very small screens if you want logo-only */
@media (max-width: 576px) {
    .brand-text {
        display: inline;
        font-size: 0.85rem;
    }
    .brand-logo {
        height: 35px;
    }
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.dropdown-menu {
    background-color: white;
    border: 1px solid var(--light-aqua);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color: var(--light-aqua);
    color: var(--dark-aqua);
}

/* Carousel Styles */
.carousel-container {
    background: linear-gradient(to bottom, #e0f7fa, #f8fcfd);
    padding: 40px 0;
}

.carousel-item {
    height: 500px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 131, 143, 0.1);
    position: relative;
}

.carousel-item img,
.carousel-item video {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.6); /* Darken media slightly to make text readable */
}

.carousel-caption {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 25px;
    bottom: 50px;
    left: 15%;
    right: 15%;
    text-align: left;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-left: 5px solid var(--primary-aqua);
}

.carousel-caption h5 {
    color: var(--dark-aqua);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.carousel-indicators button {
    background-color: var(--primary-aqua) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 6px !important;
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 500px;
    padding: 40px 0;
}

.page-title {
    color: var(--dark-aqua);
    font-weight: 700;
    border-bottom: 3px solid var(--medium-aqua);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Journal Highlights Section ("Why Publish With NJWR") */
.journal-highlights {
    padding: 64px 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef9fb 100%);
    border-top: 1px solid var(--light-aqua);
}

.highlights-title {
    color: var(--dark-aqua);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 8px;
}

.highlights-subtitle {
    color: var(--text-dark);
    opacity: 0.75;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.highlight-card {
    background: #fff;
    border: 1px solid var(--light-aqua);
    border-radius: 16px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 131, 143, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 131, 143, 0.14);
    border-color: var(--medium-aqua);
}

.highlight-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-aqua), var(--dark-aqua));
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 131, 143, 0.25);
}

.highlight-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.highlight-card-title {
    color: var(--dark-aqua);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight-card-text {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .journal-highlights { padding: 48px 0; }
    .highlights-title { font-size: 1.6rem; }
    .highlights-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Journal Latest News Section */
.journal-news {
    padding: 64px 0;
    background: #f4fbfd;
    border-top: 1px solid var(--light-aqua);
}

.news-section-title {
    color: var(--dark-aqua);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 8px;
}

.news-section-subtitle {
    color: var(--text-dark);
    opacity: 0.75;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

.scroller {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
    display: none;
}

.news-card {
    background: #fff;
    border: 1px solid var(--light-aqua);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 131, 143, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 131, 143, 0.14);
    border-color: var(--medium-aqua);
}

.scroller .news-card {
    flex: 0 0 auto;
    width: 340px;
    min-width: 260px;
    scroll-snap-align: start;
}

.scroll-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.scroll-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.scroll-dot:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: scale(1.1);
}

.scroll-dot.is-active {
    background: var(--primary-aqua);
    transform: scale(1.15);
}

@media (max-width: 640px) {
    .scroller .news-card {
        width: 85vw;
        min-width: 260px;
    }

    .scroll-nav {
        gap: 10px;
    }
}

/* New-news indicator (pulsing dot + NEW badge) */
.news-new-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: news-pulse 1.6s infinite;
}

@keyframes news-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.news-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.news-new-badge--light {
    position: static;
    display: inline-block;
    vertical-align: middle;
    margin-left: 12px;
    box-shadow: none;
}

.news-card-image {
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    background: var(--light-aqua);
    color: var(--dark-aqua);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.news-card-title {
    color: var(--dark-aqua);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-card-excerpt {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.news-read-more {
    margin-top: auto;
    color: var(--primary-aqua);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.news-read-more:hover {
    color: var(--dark-aqua);
    transform: translateX(4px);
}

.btn-journal-news-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-aqua), var(--dark-aqua));
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-journal-news-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 131, 143, 0.3);
    color: #fff;
}

@media (max-width: 640px) {
    .journal-news { padding: 48px 0; }
    .news-section-title { font-size: 1.6rem; }
}

/* Journal News Detail Page */
.news-detail-card {
    background: #fff;
    border: 1px solid var(--light-aqua);
    border-left: 6px solid var(--primary-aqua);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(2, 60, 90, 0.08);
    max-width: 720px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease-out 0.1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(2, 60, 90, 0.16);
    border-left-color: var(--dark-aqua);
}

.news-detail-image {
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 131, 143, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-detail-card:hover .news-detail-image {
    transform: scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 131, 143, 0.15);
}

.news-detail-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-detail-card:hover .news-detail-image img {
    transform: scale(1.04);
}

.news-detail-content {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1rem;
}

.news-detail-header {
    margin-bottom: 24px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.news-detail-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-aqua, #00838f);
    display: inline-flex;
    align-items: center;
}

.news-new-badge--small {
    font-size: 0.68rem;
    padding: 2px 10px;
    border-radius: 50px;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseNews 2s ease-in-out infinite;
}

@keyframes pulseNews {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.news-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark, #2c3e50);
    margin: 0;
    line-height: 1.3;
}

.news-detail-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-aqua), var(--dark-aqua));
    border-radius: 999px;
    margin-top: 16px;
}

.btn-back-news {
    border-radius: 10px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--dark-aqua, #00838f);
    border-color: var(--dark-aqua, #00838f);
    background: transparent;
}

.btn-back-news:hover {
    transform: translateX(-3px);
    border-color: var(--primary-aqua, #2bb9c0);
    color: var(--primary-aqua, #2bb9c0);
    background: rgba(43, 185, 192, 0.06);
}

.btn-back-news:focus {
    box-shadow: 0 0 0 3px rgba(43, 185, 192, 0.25);
}

@media (max-width: 640px) {
    .news-detail-card { padding: 20px; }
    .news-detail-title { font-size: 1.4rem; }
}

/* Publications Table */
.table-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.publications-table {
    width: 100%;
    border-collapse: collapse;
}

.publications-table thead {
    background-color: var(--light-aqua);
}

.publications-table th {
    color: var(--dark-aqua);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--medium-aqua);
}

.publications-table td {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: top;
}

.publications-table tbody tr:hover {
    background-color: rgba(224, 247, 250, 0.3);
}

.btn-abstract {
    background-color: var(--primary-aqua);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s;
}

.btn-abstract:hover {
    background-color: var(--dark-aqua);
    color: white;
}

.btn-pdf {
    background-color: #e74c3c;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s;
}

.btn-pdf:hover {
    background-color: #c0392b;
    color: white;
}

/* Login Form */
.login-form {
    max-width: 380px;
    margin: 40px auto;
    background-color: white;
    padding: 1.25rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 131, 143, 0.12);
    border: 1px solid rgba(43, 185, 192, 0.1);
    border-top: 6px solid var(--primary-aqua);
    transition: transform 0.3s ease;
}

.login-form .mb-3 {
    margin-bottom: 0.85rem !important;
}

.form-control:focus {
    border-color: var(--primary-aqua);
    box-shadow: 0 0 0 0.25rem rgba(43, 185, 192, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-aqua), var(--dark-aqua));
    color: white;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(43, 185, 192, 0.25);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 185, 192, 0.35);
    color: white;
}

/* About Section */
.about-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--primary-aqua);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--medium-aqua);
}

.footer-links {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        padding: 15px;
        bottom: 20px;
    }
    
    .publications-table {
        font-size: 0.9rem;
    }
    
    .publications-table th,
    .publications-table td {
        padding: 10px;
    }
}

/* ==================== ABOUT PAGE STYLES ==================== */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--dark-aqua), var(--primary-aqua), var(--medium-aqua));
    background-size: 300% 300%;
    animation: gradient-shift 10s ease infinite;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

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

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* About Card */
.about-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 131, 143, 0.08);
    overflow: hidden;
}

.about-card-header {
    background: linear-gradient(135deg, var(--light-aqua), rgba(224, 247, 250, 0.5));
    padding: 24px 32px;
    border-bottom: 1px solid rgba(43, 185, 192, 0.15);
}

.about-card-header h2 {
    color: var(--dark-aqua);
    font-weight: 700;
}

.about-card-body {
    padding: 32px;
}

/* Rich Text in About Card */
.about-card .dynamic-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
}

.about-card .dynamic-content p {
    margin-bottom: 1.1em;
}

.about-card .dynamic-content h1,
.about-card .dynamic-content h2,
.about-card .dynamic-content h3,
.about-card .dynamic-content h4 {
    color: var(--dark-aqua);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.about-card .dynamic-content h1 { font-size: 2rem; }
.about-card .dynamic-content h2 { font-size: 1.6rem; }
.about-card .dynamic-content h3 { font-size: 1.3rem; }
.about-card .dynamic-content h4 { font-size: 1.1rem; }

.about-card .dynamic-content ul,
.about-card .dynamic-content ol {
    margin-bottom: 1.2em;
    padding-left: 1.8em;
}

.about-card .dynamic-content ul { list-style-type: disc; }
.about-card .dynamic-content ol { list-style-type: decimal; }

.about-card .dynamic-content li {
    margin-bottom: 0.4em;
}

.about-card .dynamic-content a {
    color: var(--primary-aqua);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.about-card .dynamic-content a:hover {
    color: var(--dark-aqua);
    border-bottom-color: var(--primary-aqua);
}

.about-card .dynamic-content blockquote {
    border-left: 4px solid var(--primary-aqua);
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    background: var(--light-aqua);
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-style: italic;
}

.about-card .dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2em 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.about-card .dynamic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.about-card .dynamic-content th,
.about-card .dynamic-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}

.about-card .dynamic-content th {
    background-color: var(--light-aqua);
    color: var(--dark-aqua);
    font-weight: 600;
}

.about-card .dynamic-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Info Sidebar */
.info-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 131, 143, 0.06);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 131, 143, 0.12);
}

.sidebar-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--light-aqua), rgba(43, 185, 192, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sidebar-icon i {
    font-size: 1.3rem;
    color: var(--primary-aqua);
}

.sidebar-title {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
}

.scope-list li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.scope-list i {
    font-size: 0.7rem;
}

.sidebar-contact {
    background: linear-gradient(135deg, var(--dark-aqua), var(--primary-aqua));
}

.sidebar-contact .sidebar-title {
    color: white;
}

.sidebar-contact .sidebar-title i {
    color: rgba(255,255,255,0.8);
}

.sidebar-contact a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
}

.sidebar-contact a:hover {
    color: white !important;
}

@media (max-width: 991px) {
    .hero-banner {
        min-height: 200px;
    }
    
    .info-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .about-card-body {
        padding: 24px 20px;
    }
}

@media (max-width: 575px) {
    .hero-banner {
        min-height: 180px;
    }

    .about-card-header {
        padding: 20px;
    }

    .about-card-body {
        padding: 20px 16px;
    }

    .sidebar-card {
        padding: 20px 16px;
    }
}


/* ==================== RICH TEXT CONTENT (About / Editor) ==================== */
.about-content .dynamic-content {
    line-height: 1.7;
    color: #374151;
    font-size: 1rem;
}

.about-content .dynamic-content p {
    margin-bottom: 1em;
}

.about-content .dynamic-content h1,
.about-content .dynamic-content h2,
.about-content .dynamic-content h3,
.about-content .dynamic-content h4 {
    color: var(--dark-aqua);
    font-weight: 700;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.about-content .dynamic-content h1 { font-size: 1.75rem; }
.about-content .dynamic-content h2 { font-size: 1.45rem; }
.about-content .dynamic-content h3 { font-size: 1.2rem; }
.about-content .dynamic-content h4 { font-size: 1.05rem; }

.about-content .dynamic-content ul,
.about-content .dynamic-content ol {
    margin-bottom: 1em;
    padding-left: 1.8em;
}

.about-content .dynamic-content ul { list-style-type: disc; }
.about-content .dynamic-content ol { list-style-type: decimal; }

.about-content .dynamic-content li {
    margin-bottom: 0.35em;
}

.about-content .dynamic-content a {
    color: var(--primary-aqua);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-content .dynamic-content a:hover {
    color: var(--dark-aqua);
}

.about-content .dynamic-content blockquote {
    border-left: 4px solid var(--medium-aqua);
    margin: 1.2em 0;
    padding: 0.6em 1em;
    background: rgba(224, 247, 250, 0.4);
    border-radius: 0 6px 6px 0;
    color: #374151;
    font-style: italic;
}

.about-content .dynamic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.about-content .dynamic-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    font-size: 0.95rem;
}

.about-content .dynamic-content th,
.about-content .dynamic-content td {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    text-align: left;
}

.about-content .dynamic-content th {
    background-color: var(--light-aqua);
    color: var(--dark-aqua);
    font-weight: 600;
}

/* Editor toolbar buttons */
#journalToolbar {
    gap: 1px;
}

#journalToolbar .tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #374151;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-size: 12px;
    padding: 0;
    line-height: 1;
}

#journalToolbar .tb-btn:hover {
    background: #d1d5db;
    color: #111827;
}

#journalToolbar .tb-btn:active {
    background: #9ca3af;
    color: #fff;
}

.editor-textarea {
    font-family: Consolas, Monaco, 'Courier New', monospace !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #1f2937 !important;
    min-height: 280px !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    padding: 16px !important;
    border: none !important;
    resize: vertical !important;
    width: 100% !important;
    outline: none !important;
    tab-size: 2;
}