/**
 * ============================================
 * MAIN CSS - TECBOK FRONTEND
 * ============================================
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 20px;
}

.top-bar-info i {
    margin-right: 5px;
    color: var(--secondary);
}

.top-bar-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-left: 8px;
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: var(--radius);
    object-fit: cover;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 13px;
    color: var(--gray);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--primary);
    background: rgba(30, 64, 175, 0.08);
}

.nav-menu > li > a i:first-child {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown li a:hover {
    background: rgba(30, 64, 175, 0.05);
    color: var(--primary);
    padding-left: 25px;
}

/* Nav CTA */
.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    box-shadow: var(--shadow);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider,
.swiper-wrapper,
.swiper-slide {
    height: 100%;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 64, 175, 0.85) 0%, rgba(30, 64, 175, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--secondary);
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--primary);
    padding: 50px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 15px auto 0;
}

/* ============================================
   SAMBUTAN / DIRECTOR MESSAGE
   ============================================ */
.sambutan-section {
    background: var(--light);
}

.sambutan-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.kepsek-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.kepsek-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.kepsek-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 30px;
}

.kepsek-badge h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
}

.kepsek-badge p {
    font-size: 14px;
    opacity: 0.9;
}

.sambutan-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.sambutan-content h3 span {
    color: var(--primary);
}

.sambutan-quote {
    font-size: 20px;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin-bottom: 25px;
}

.sambutan-content p {
    margin-bottom: 15px;
    color: var(--gray);
    line-height: 1.8;
}

.signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.signature h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--dark);
}

.signature p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* ============================================
   VISÃO & MISSÃO
   ============================================ */
.visao-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.visao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.visao-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

.visao-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.visao-card h3 i {
    color: var(--secondary);
    font-size: 28px;
}

.visao-card p {
    line-height: 1.8;
    opacity: 0.9;
}

/* ============================================
   PROGRAMAS / CURSOS
   ============================================ */
.jurusan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.jurusan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.jurusan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.jurusan-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.jurusan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.jurusan-card:hover .jurusan-image img {
    transform: scale(1.1);
}

.jurusan-icon {
    position: absolute;
    bottom: -25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    box-shadow: var(--shadow-lg);
}

.jurusan-body {
    padding: 35px 25px 25px;
}

.jurusan-body h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.jurusan-body p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.jurusan-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
}

.jurusan-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.jurusan-meta i {
    color: var(--primary);
}

/* ============================================
   BERITA / AVISOS
   ============================================ */
.berita-section {
    background: var(--light);
}

.berita-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.berita-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.berita-main-image {
    height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.berita-main-image .category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.berita-main-body {
    padding: 30px;
}

.berita-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
}

.berita-date i {
    color: var(--primary);
}

.berita-main-body h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.berita-main-body p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    gap: 12px;
    color: var(--primary-dark);
}

.read-more i {
    transition: var(--transition);
}

/* Berita List */
.berita-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.berita-item {
    display: flex;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.berita-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.berita-item-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.berita-item-body {
    flex: 1;
}

.berita-item-body h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

/* ============================================
   ATIVIDADES
   ============================================ */
.atividades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.atividade-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.atividade-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.atividade-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.atividade-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.atividade-card:hover .atividade-image img {
    transform: scale(1.1);
}

.atividade-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-agendada {
    background: var(--secondary);
    color: var(--white);
}

.status-curso {
    background: var(--success);
    color: var(--white);
}

.status-concluida {
    background: var(--gray);
    color: var(--white);
}

.status-default {
    background: var(--primary-light);
    color: var(--white);
}

.atividade-body {
    padding: 25px;
}

.atividade-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.atividade-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.atividade-local {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
}

.atividade-local i {
    color: var(--danger);
}

/* ============================================
   NO DATA MESSAGE
   ============================================ */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ============================================
   SWIPER CUSTOM
   ============================================ */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.2);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary) !important;
    width: 20px;
    border-radius: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    margin: 15px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links ul li a i {
    font-size: 12px;
    color: var(--primary);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

.footer-contact ul li i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray);
}

/* ============================================
   CARD MODAL - CLICK ACTIONS
   ============================================ */

/* Cursor & hover untuk semua card yang bisa diklik */
.jurusan-card,
.visao-card,
.berita-main,
.berita-item,
.atividade-card {
    cursor: pointer;
}

/* Override hover atividade agar tidak konflik */
.jurusan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.atividade-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.visao-card:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.berita-main:hover {
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

/* Hint "Ver detalhes" muncul saat hover */
.card-click-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.jurusan-card:hover .card-click-hint,
.atividade-card:hover .card-click-hint,
.berita-main:hover .card-click-hint,
.berita-item:hover .card-click-hint {
    opacity: 1;
}

/* Visao card hint warna putih */
.visao-card .card-click-hint {
    color: rgba(255,255,255,0.85);
}

/* Associacao grid hover */
.sambutan-grid[data-modal-bound] {
    cursor: pointer;
    transition: var(--transition);
}

.sambutan-grid[data-modal-bound]:hover {
    transform: translateY(-3px);
}

/* ── MODAL OVERLAY ── */
#card-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.2s ease;
}

#card-modal-overlay.active {
    display: flex;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── MODAL BOX ── */
#card-modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 28px 64px rgba(0,0,0,0.22);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── MODAL HERO ── */
.modal-hero-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}

.modal-hero-placeholder {
    width: 100%;
    height: 170px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
}

/* ── MODAL BODY ── */
.modal-body-content {
    padding: 28px 32px 36px;
}

.modal-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
    margin-right: 6px;
}

.modal-body-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.modal-body-content p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.8;
    margin: 0 0 12px;
}

/* ── MODAL META GRID ── */
.modal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 4px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.modal-meta-item i {
    font-size: 14px;
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-meta-item .meta-label {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    display: block;
}

.modal-meta-item .meta-value {
    font-size: 0.88rem;
    color: var(--dark);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* ── MODAL SECTION BLOCKS ── */
.modal-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 10px;
}

.modal-section p {
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.75;
    margin: 0;
}

/* ── CLOSE BUTTON ── */
#modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--dark);
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#modal-close-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    color: var(--danger);
}

/* ── STATUS BADGES ── */
.modal-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
    margin-left: 4px;
}

.modal-status-badge.agendada  { background: #fef3c7; color: #92400e; }
.modal-status-badge.em-curso  { background: #d1fae5; color: #065f46; }
.modal-status-badge.concluida { background: var(--gray-light); color: var(--gray); }

/* ── SCROLLBAR ── */
#card-modal-box::-webkit-scrollbar { width: 5px; }
#card-modal-box::-webkit-scrollbar-track { background: transparent; }
#card-modal-box::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 4px; }

/* ── RESPONSIVE MODAL ── */
@media (max-width: 640px) {
    #card-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    #card-modal-box {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .modal-body-content {
        padding: 20px 18px 28px;
    }
    .modal-meta-grid {
        grid-template-columns: 1fr;
    }
}