/* =====================================================
   Maliban Intern Portfolio — Main Stylesheet
   Theme: Maliban Red  #C8102E
   ===================================================== */

:root {
    --red:      #C8102E;
    --red-dark: #a50d25;
    --red-light:#fdf5f5;
    --red-mid:  #fde8e8;
    --text:     #334155;
    --dark:     #0f172a;
    --muted:    #64748b;
    --border:   #e2e8f0;
    --bg:       #f8fafc;
    --white:    #ffffff;
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    padding-top: 64px; /* navbar height */
}

a { color: var(--red); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* =====================================================
   NAVBAR
   ===================================================== */
.site-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.25s;
}
.site-navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-wrap img { height: 38px; object-fit: contain; }
.nav-brand { font-size: 15px; font-weight: 700; color: var(--dark); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a,
.nav-dropdown > a {
    display: block;
    font-size: 13px; font-weight: 500; color: #475569;
    text-decoration: none; padding: 7px 13px; border-radius: 8px;
    transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-links > a:hover, .nav-links > a.active,
.nav-dropdown > a:hover, .nav-dropdown > a.active {
    background: var(--red-light); color: var(--red);
}
.nav-admin {
    background: var(--red) !important; color: #fff !important;
    border-radius: 8px !important; margin-left: 8px; padding: 7px 18px !important;
}
.nav-admin:hover { background: var(--red-dark) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1); min-width: 200px;
    padding: 6px; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block; padding: 8px 14px; font-size: 13px;
    color: var(--text); text-decoration: none; border-radius: 8px;
    transition: background 0.12s;
}
.nav-dropdown-menu a:hover { background: var(--red-light); color: var(--red); }
.nav-dropdown-menu .divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Mobile */
.mobile-nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 10px; cursor: pointer; color: #475569; font-size: 18px;
}
.mobile-nav-panel {
    display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 999;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 12px 24px; flex-direction: column; gap: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mobile-nav-panel.open { display: flex; }
.mobile-nav-panel a {
    font-size: 14px; color: var(--text); text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid var(--bg); font-weight: 500;
}
.mobile-nav-panel a:last-child { border: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-nav-toggle { display: block; }
    .site-navbar { padding: 0 20px; }
}

/* =====================================================
   PAGE LAYOUT
   ===================================================== */
.page-wrapper {
    display: flex;
    min-height: calc(100vh - 64px - 72px); /* viewport - navbar - footer */
    align-items: stretch;
}

/* ── Sidebar ── */
.sidebar {
    width: 226px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 64px;
    align-self: flex-start;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #94a3b8;
    padding: 0 18px 6px; margin-top: 8px;
}
.sidebar-link {
    display: block; padding: 9px 18px;
    font-size: 13px; font-weight: 500; color: #475569;
    text-decoration: none;
    border-radius: 0 20px 20px 0;
    margin-right: 10px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-link:hover { background: var(--red-light); color: var(--red); }
.sidebar-link.active {
    background: var(--red-light); color: var(--red);
    font-weight: 600; border-left: 3px solid var(--red);
}
.sidebar-divider { height: 1px; background: var(--bg); margin: 6px 18px; }

/* ── Right column (hero + content) ── */
.page-right {
    flex: 1;
    min-width: 0; /* prevent overflow */
    display: flex;
    flex-direction: column;
}

/* ── Page hero ── */
.page-hero {
    background: linear-gradient(135deg, #1a0505 0%, #7f1d1d 55%, var(--red) 100%);
    padding: 40px 44px 36px;
    position: relative; overflow: hidden;
    flex-shrink: 0;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('../img/header.jpg') center/cover no-repeat;
    opacity: 0.12;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb-bar {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 10px;
}
.breadcrumb-bar a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.breadcrumb-bar a:hover { color: #fff; }
.breadcrumb-bar .bc-sep { color: rgba(255,255,255,0.35); }
.breadcrumb-bar .bc-current { color: rgba(255,255,255,0.85); }
.page-hero h1 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.page-hero .page-sub { font-size: 14px; color: rgba(255,255,255,0.65); margin: 0; }
.date-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; color: rgba(255,255,255,0.85);
    margin-top: 10px;
}

/* ── Main content ── */
.main-content {
    flex: 1;
    padding: 32px 40px;
}

@media (max-width: 991px) {
    .page-hero  { padding: 32px 20px 28px; }
    .main-content { padding: 20px 16px; }
}

/* =====================================================
   CARDS
   ===================================================== */
.card-section {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 16px; padding: 26px; margin-bottom: 20px;
}
.card-section-title {
    font-size: 15px; font-weight: 700; color: var(--dark);
    margin-bottom: 20px; padding-bottom: 14px;
    border-bottom: 2px solid var(--red-light);
    display: flex; align-items: center; gap: 10px;
}
.card-section-title .title-icon {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--red-light); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}

/* =====================================================
   INFO GRID
   ===================================================== */
.info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }
.info-row-item { padding: 10px 0; border-bottom: 1px solid var(--bg); }
.info-row-item:nth-last-child(-n+2) { border: none; }
.info-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: #94a3b8; margin-bottom: 3px;
}
.info-value { font-size: 14px; color: var(--dark); font-weight: 500; }

/* =====================================================
   VISION / MISSION / MOTTO
   ===================================================== */
.vmm-card { border-radius: 14px; padding: 18px 20px; height: 100%; }
.vmm-card .vmm-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 8px;
}
.vmm-card p { font-size: 14px; line-height: 1.6; margin: 0; }
.vmm-red   { background: var(--red-light); border: 1px solid #f1c0c0; }
.vmm-red   .vmm-label { color: var(--red); }
.vmm-red   p { color: #7f1d1d; }
.vmm-amber { background: #fffbeb; border: 1px solid #fde68a; }
.vmm-amber .vmm-label { color: #d97706; }
.vmm-amber p { color: #78350f; }
.vmm-green { background: #f0fdf4; border: 1px solid #bbf7d0; }
.vmm-green .vmm-label { color: #16a34a; }
.vmm-green p { color: #14532d; font-style: italic; }

/* =====================================================
   RICH CONTENT
   ===================================================== */
.rich-content { font-size: 14px; line-height: 1.8; color: var(--text); }
.rich-content h2 { font-size: 17px; font-weight: 700; color: var(--red); margin: 22px 0 9px; }
.rich-content h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin: 16px 0 7px; }
.rich-content h4 { font-size: 14px; font-weight: 600; margin: 12px 0 5px; }
.rich-content p  { margin-bottom: 12px; }
.rich-content ul, .rich-content ol { padding-left: 22px; margin-bottom: 12px; }
.rich-content li { margin-bottom: 5px; }
.rich-content img { max-width: 100%; border-radius: 10px; margin: 14px 0; display: block; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 9px 13px; }
.rich-content th { background: var(--bg); font-weight: 600; color: var(--dark); }
.rich-content blockquote {
    border-left: 4px solid var(--red); padding: 10px 18px;
    margin: 14px 0; background: var(--red-light);
    border-radius: 0 8px 8px 0; color: #7f1d1d;
}
.rich-content strong { color: var(--dark); }
.rich-content a { color: var(--red); }
.rich-content hr { border: none; border-top: 2px solid var(--border); margin: 20px 0; }

/* =====================================================
   GRID CARDS (Diary / Factory)
   ===================================================== */
.grid-card {
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; display: block;
    background: var(--white); transition: box-shadow 0.2s, transform 0.2s;
}
.grid-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); color: inherit; }
.grid-card-img {
    height: 148px;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red-mid) 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.grid-card-img img { width: 100%; height: 100%; object-fit: cover; }
.grid-card-img .card-num {
    font-size: 52px; font-weight: 800; color: var(--red); opacity: 0.2;
}
.card-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--red); color: #fff; border-radius: 7px;
    padding: 3px 10px; font-size: 11px; font-weight: 600;
}
.grid-card-body { padding: 15px 16px; }
.grid-card-title { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.grid-card-sub   { font-size: 12px; color: var(--muted); }

/* =====================================================
   ENTRY NAVIGATION (Prev / Next)
   ===================================================== */
.entry-nav {
    display: flex; justify-content: space-between;
    margin: 4px 0 28px; gap: 12px;
}
.entry-nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--text);
    text-decoration: none; transition: all 0.15s; max-width: 48%;
}
.entry-nav-btn:hover { background: var(--red-light); border-color: #f1c0c0; color: var(--red); }
.entry-nav-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.entry-cover { border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.entry-cover img { width: 100%; max-height: 340px; object-fit: cover; display: block; }

/* =====================================================
   SKILLS
   ===================================================== */
.skill-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 24px; margin-bottom: 14px;
    display: flex; gap: 18px; align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
}
.skill-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateX(4px); }
.skill-icon {
    width: 48px; height: 48px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 21px;
}
.skill-icon.s1 { background: var(--red-light); color: var(--red); }
.skill-icon.s2 { background: #f0fdf4;          color: #16a34a; }
.skill-icon.s3 { background: #faf5ff;          color: #9333ea; }
.skill-icon.s4 { background: #fff7ed;          color: #ea580c; }
.skill-icon.s5 { background: #fdf4ff;          color: #a21caf; }
.skill-body h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.skill-body p  { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 0; }

/* =====================================================
   ABOUT / SUPERVISOR
   ===================================================== */
.about-hero-card {
    background: linear-gradient(135deg, #7f1d1d 0%, var(--red) 100%);
    border-radius: 18px; padding: 28px 32px; color: #fff; margin-bottom: 20px;
    display: flex; gap: 22px; align-items: center;
}
.about-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800; color: #fff;
}
.about-hero-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.about-hero-card .about-dept { font-size: 13px; color: rgba(255,255,255,0.72); margin-bottom: 10px; }
.about-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.15); border-radius: 20px;
    padding: 4px 12px; font-size: 12px; margin: 2px 2px;
}

.sv-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.sv-avatar {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
}
.sv-avatar.red   { background: linear-gradient(135deg, #7f1d1d, var(--red)); }
.sv-avatar.green { background: linear-gradient(135deg, #14532d, #16a34a); }
.sv-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.sv-badge.red   { color: var(--red); }
.sv-badge.green { color: #16a34a; }
.sv-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.sv-card .sv-role { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.sv-contact { font-size: 13px; color: #475569; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.sv-contact i { color: var(--red); font-size: 13px; }
.sv-contact a { color: inherit; text-decoration: none; }
.sv-contact a:hover { color: var(--red); }

/* =====================================================
   RESOURCE BUTTONS
   ===================================================== */
.res-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 14px 18px; text-decoration: none; color: var(--dark);
    font-size: 14px; font-weight: 500; transition: all 0.15s; width: 100%;
}
.res-btn:hover { background: var(--red-light); border-color: #f1c0c0; color: var(--red); }
.res-btn .res-icon { font-size: 22px; color: var(--red); flex-shrink: 0; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: #0f172a; color: rgba(255,255,255,0.5);
    padding: 28px 0; font-size: 13px;
}
.site-footer img { height: 30px; object-fit: contain; opacity: 0.55; margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; }
.site-footer p { margin: 0 0 10px; text-align: center; }
.site-footer a {
    color: rgba(255,255,255,0.4); font-size: 18px;
    margin: 0 6px; text-decoration: none; transition: color 0.15s;
}
.site-footer a:hover { color: #fff; }

/* =====================================================
   SECTION LABEL
   ===================================================== */
.section-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px; color: var(--red); margin-bottom: 8px;
}
