/* ==========================================================================
   1. CORE GLOBAL STYLES & SMART VARIABLES
   ========================================================================== */
:root {
  --bg-dark: #f8fafc;
  --accent-orange: #e11d48;
  --accent-blue: #2563eb;
  --accent-amber: #d97706;
  --accent-purple: #7c3aed;
  --whtsAppp-green: #0E6134;
  --font-main: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.sky-background, .star { display: none !important; }

/* ==========================================================================
   2. PORTAL LAYOUT
   ========================================================================== */
.portal-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 100px auto 60px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* D-Day Tracker Banner */
.dday-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.dday-info { display: flex; align-items: center; gap: 12px; }
.dday-badge { background: #0f172a; color: #ffffff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.dday-text { font-size: 13.5px; color: #475569; font-weight: 500; }
.dday-countdown { font-size: 16px; font-weight: 700; color: #0f172a; background: #f1f5f9; padding: 4px 10px; border-radius: 6px; border: 1px solid #e2e8f0; }

.portal-intro { text-align: center; margin-bottom: 40px; }
.portal-intro h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px 0; letter-spacing: -0.02em; color: #0f172a; }
.portal-intro p { font-size: 14px; color: #64748b; }

/* ==========================================================================
   3. CARD VIEW SYSTEM (DEEP DROP SHADOWS)
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.edu-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; position: relative; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px -4px rgba(15, 23, 42, 0.14), 0 8px 20px -6px rgba(15, 23, 42, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.card-tag { align-self: flex-start; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.03em; }
.tag-orange { background: #fff1f2; color: var(--accent-orange); border: 1px solid #ffe4e6; }
.tag-blue { background: #eff6ff; color: var(--accent-blue); border: 1px solid #dbeafe; }
.tag-amber { background: #fffbeb; color: var(--accent-amber); border: 1px solid #fef3c7; }
.tag-purple { background: #faf5ff; color: var(--accent-purple); border: 1px solid #f3e8ff; }
.tag-whatsApp { background: #f0fdf4; color: var(--whtsAppp-green); border: 1px solid #dcfce7; }

.card-icon { font-size: 65px; margin-bottom: 16px; display: inline-block; line-height: 1; }
.edu-card h3, .cardCbtTitle { font-size: 21px !important; font-weight: 700 !important; margin: 0 0 8px 0 !important; color: #0f172a !important; letter-spacing: -0.02em !important; line-height: 1.3 !important; }
.edu-card p { font-size: 14px; color: #475569; line-height: 1.5; margin: 0 0 26px 0; flex-grow: 1; }
.card-action { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; border-top: 1px solid #f1f5f9; padding-top: 16px; color: #64748b; }

/* ==========================================================================
   4. INTERACTIVE BUTTONS
   ========================================================================== */
.action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #ffffff; letter-spacing: 0.01em; cursor: pointer; transition: all 0.2s ease; }

#openWindowBtn .action-btn { background: var(--accent-orange); box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25); }
#Grammar .action-btn { background: var(--accent-blue); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
#pronunciation .action-btn { background: var(--accent-amber); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25); }
#downloadCenterBtn .action-btn { background: var(--accent-purple); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25); }
#contactBuyBtn .action-btn { background: var(--whtsAppp-green); box-shadow: 0 4px 12px rgba(1, 255, 115, 0.25); }

/* ==========================================================================
   5. HOVER MOTION
   ========================================================================== */
.edu-card:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -12px rgba(15, 23, 42, 0.16), 0 20px 36px -8px rgba(15, 23, 42, 0.1); }
#openWindowBtn:hover { border-color: var(--accent-orange); }
#openWindowBtn .action-btn:hover { background: #be123c; box-shadow: 0 6px 16px rgba(190, 18, 60, 0.4); }
#Grammar:hover { border-color: var(--accent-blue); }
#Grammar .action-btn:hover { background: #1d4ed8; box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4); }
#pronunciation:hover { border-color: var(--accent-amber); }
#pronunciation .action-btn:hover { background: #d97706; box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4); }
#downloadCenterBtn:hover { border-color: var(--accent-purple); }
#downloadCenterBtn .action-btn:hover { background: #6d28d9; box-shadow: 0 6px 16px rgba(109, 40, 217, 0.4); }
#contactBuyBtn:hover { border-color: var(--whtsAppp-green); }
#contactBuyBtn .action-btn:hover { background: var(--whtsAppp-green); box-shadow: 0 6px 16px rgba(14, 97, 52, 0.4); }

/* ==========================================================================
   6. DYNAMIC MOBILE VIEW OVERRIDES
   ========================================================================== */
@media (max-width: 768px) {
  .portal-container { margin-top: 135px; padding: 0 16px; }
  .portal-intro { margin-bottom: 28px; }
  .portal-intro h2 { font-size: 22px; }
  .dday-banner { flex-direction: column; gap: 12px; align-items: stretch; padding: 16px; text-align: center; }
  .dday-info { flex-direction: column; gap: 6px; }
  .dday-countdown { text-align: center; width: auto; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .edu-card { padding: 22px; border-radius: 12px; }
  .card-icon { font-size: 32px; margin-bottom: 12px; }
  .edu-card h3, .cardCbtTitle { font-size: 19px !important; }
  .action-btn { padding: 10px 20px; font-size: 14px; width: 30%; justify-content: center; }
}