/* css/style.css */

:root {
    --primary-color: #0d2c44;
    --secondary-color: #1a4f76;
    --accent-color: #38bdf8;
    --bg-color: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --ticker-bg: #0f172a;
    --ticker-text: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 1) ROTATING TOP BANNER */
.top-banner {
    background-color: var(--ticker-bg);
    color: var(--ticker-text);
    overflow: hidden;
    white-space: nowrap;
    padding: 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker__item {
    padding: 0 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* 2) JWT MAIN HORIZONTAL MENU */
.main-menu {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 8px 16px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 3) PCRR SUB MENU (HORIZONTAL) */
.sub-menu {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-nav-links {
    list-style: none;
    display: flex;
}

.sub-nav-links li a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.sub-nav-links li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Layout */
.layout-container {
    display: flex;
    flex: 1;
    max-width: 1200px;
    margin: 40px auto;
    width: 100%;
    padding: 0 20px;
    gap: 40px;
}

/* 4) LEFT SIDEBAR MENUS */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.sidebar-section h3 a {
    color: var(--primary-color);
}

.sidebar-section h3 a:hover {
    color: var(--accent-color);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 6px;
}

.sidebar-list li a {
    display: block;
    padding: 10px 14px;
    color: #475569;
    font-size: 0.95rem;
    border-radius: 6px;
}

.sidebar-list li a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.sidebar-list li a.active {
    background-color: #f0f9ff;
    color: #0284c7;
    font-weight: 600;
    border-left: 3px solid #0284c7;
    padding-left: 11px; /* Adjusting for the 3px left border to keep total padding 14 */
}

/* 5) PRESENTATIONSPACE CONTENT */
.main-content {
    flex: 1;
    background: var(--white);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.presentation-space h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.intro-text {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 35px;
}

.grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-preview {
    height: 180px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Vibrant abstract gradients for preview placeholders */
.card-preview.style-1 { background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); }
.card-preview.style-2 { background: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%); }
.card-preview.style-3 { background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }
.card-preview.style-4 { background: linear-gradient(120deg, #f6d365 0%, #fda085 100%); }

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
    line-height: 1.6;
}

.card-link {
    color: #0284c7;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    color: #0369a1;
}

/* 6) FOOTER CORRECTION */
.site-footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 30px 0;
    margin-top: auto;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left span {
    color: #e2e8f0;
}

.footer-right {
    text-align: right;
    color: #64748b;
}

/* Responsive */
@media (max-width: 860px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
}
