/* CSS 분산 관리 - 서브 페이지 전용 (Sub-pages) */

/* General Subpage Hero */
.sub-hero {
    height: 350px;
    background-size: 100% 100%;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 96px;
    /* Header Height */
}

/* Banner Mode Override */
.sub-hero.banner-mode {
    height: 350px;
    background: none;
    display: block;
    padding: 0;
    overflow: hidden;
    background-color: #fff;
    /* or matching banner color */
}

.sub-hero.banner-mode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.sub-hero::before {
    display: none;
}

.sub-hero.banner-mode::before {
    display: none;
}

.sub-hero-content {
    display: block;
    position: relative;
    z-index: 2;
}

/* Sub Hero Typography */
.sub-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #222;
}

.sub-hero-desc {
    font-size: 1.25rem;
    opacity: 1;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-weight: 500;
}

/* Intro Tabs */
.intro-tabs-container {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 131px;
    /* Header (35px + 96px) */
    z-index: 900;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.intro-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.tab-link {
    display: block;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-link:hover {
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content Areas */
.tab-pane {
    display: none;
    padding: 100px 0;
    /* Increase padding for better separation */
    animation: fadeIn 0.5s ease-out;
    scroll-margin-top: 180px;
    /* Header + Tabs + extra gap */
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vision Styles */
.vision-points {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.v-point {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.v-point:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.v-point i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.v-point span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.3;
    display: block;
}

/* Timeline Styles (History) */
/* Timeline Styles (History - ZigZag) */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 0 20px;
}

/* Center Line */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light), #eee);
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    margin-bottom: 60px;
    position: relative;
    width: 50%;
    clear: both;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.timeline-item.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Odd items (3rd child, 5th child...) on the right (actually left in layout) */
.timeline-item:nth-child(odd) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
    margin-left: 50%;
}

/* Markers */
.timeline-marker {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: -12px;
    /* Adjust for left items */
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 114, 66, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-marker {
    left: -12px;
    /* Adjust for right items */
    right: auto;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(255, 114, 66, 0.3);
    transform: scale(1.1);
}

/* Year Label */
.timeline-year {
    position: absolute;
    top: 15px;
    right: -130px;
    width: 100px;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Poppins', sans-serif;
}

.timeline-item:nth-child(odd) .timeline-year {
    left: -130px;
    text-align: right;
    right: auto;
}

/* Content Box */
.timeline-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary);
    /* Changed to top border */
    border-left: none;
    position: relative;
    width: 100%;
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

/* Arrow */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 24px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
    /* Pointing right */
    filter: drop-shadow(2px 0 1px rgba(0, 0, 0, 0.05));
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    right: auto;
    border-left: none;
    border-right: 10px solid #fff;
    /* Pointing left */
    filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.05));
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 114, 66, 0.15);
}

/* Content Text */
.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    color: #555;
    display: inline-block;
    text-align: left;
}

.timeline-content li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    transition: background 0.3s;
}

.timeline-item:hover li::before {
    background: var(--primary-light);
}

/* Responsive (Mobile) */
/* @media (max-width: 768px) {
    .timeline-container {
        padding-left: 30px;
        padding-right: 20px;
        margin-top: 50px;
    }

    .timeline-line {
        left: 30px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) {
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }

    .timeline-year {
        position: relative;
        top: auto;
        right: auto !important;
        left: 0 !important;
        width: 100%;
        text-align: left !important;
        margin-bottom: 10px;
        display: block;
    }

    .timeline-content {
        text-align: left;
        border-top: none;
        border-left: 4px solid var(--primary);
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-left: none;
        border-right: 10px solid #fff;
        filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.05));
    }

    .timeline-content ul {
        display: block;
    }
} */

/* Partner Section Redesign */
.partner-category-container {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.partner-category-container.active {
    display: block;
}

.partner-grid-static {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 140px;
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.partner-item img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.partner-more-text {
    margin-top: 40px;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    padding-right: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Character & Song */
.character-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 114, 66, 0.05) 0%, transparent 40%);
}

.char-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.char-visual img {
    max-width: 450px;
    animation: floatBee 3s ease-in-out infinite;
}

.char-info {
    flex: 1.5;
}

.char-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.char-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    word-break: keep-all;
}

.cm-song-player {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
}

.player-header i {
    color: var(--primary);
}

.lyrics-preview {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    font-style: italic;
}

@keyframes floatBee {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* @media (max-width: 768px) {
    .sub-hero {
        height: 250px;
    }

    .intro-tabs {
        gap: 10px;
    }

    .tab-link {
        font-size: 0.9rem;
        padding: 15px 5px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-year {
        width: auto;
        text-align: left;
        margin-left: 40px;
        margin-bottom: 5px;
    }

    .timeline-marker {
        left: 13px;
    }

    .timeline-content {
        margin-left: 40px;
    }

    .character-intro {
        flex-direction: column;
        text-align: center;
    }
} */

/* Modern Vision Section - Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bento-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Card Specifics */
.card-hero {
    grid-column: span 2;
    background: linear-gradient(135deg, #FF7242 0%, #FF9068 100%);
    color: white;
    justify-content: center;
}

.card-hero h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.card-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

.card-goal {
    grid-column: span 2;
    background: #FAFAFA;
}

.card-value {
    grid-column: span 1;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.card-value i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: #FFF0EB;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    text-align: center;
}

/* 3D Flip Card Effect for 4Cs */
.bento-card.flip-container {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    perspective: 1000px;
    overflow: visible;
    /* Override default card hidden overflow */
}

.bento-card.flip-container:hover {
    transform: none;
    /* Override default hover lift */
    box-shadow: none;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d;
}

.flip-container:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
}

.flip-front {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.flip-back {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c66 100%);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 15px 35px rgba(255, 114, 66, 0.3);
}

.flip-back p {
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    word-break: keep-all;
    margin: 0;
}

.card-large {
    grid-column: span 2;
}

/* Typography in Cards */
.bento-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.bento-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-hero h4,
.card-hero p {
    color: white;
}

/* Roadmap/Graphic Styles for Goal Card */
.goal-roadmap {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    position: relative;
}

.goal-roadmap::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
}

.roadmap-point {
    position: relative;
    z-index: 1;
    background: #FAFAFA;
    padding: 0 10px;
    text-align: center;
    cursor: pointer;
}

/* Roadmap Tooltip */
.roadmap-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
    pointer-events: none;
    text-align: left;
}

.roadmap-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.roadmap-point:hover .roadmap-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.roadmap-tooltip strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.roadmap-tooltip p {
    font-size: 0.85rem !important;
    color: #555 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    word-break: keep-all;
}

.point-dot {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #eee;
}

.roadmap-point span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .sub-hero {
        display: none !important;
    }

    .intro-tabs-container {
        top: 70px;
    }

    .intro-tabs {
        gap: 15px;
    }

    .tab-link {
        font-size: 0.95rem;
        padding: 15px 5px;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    /* Bento Grid Mobile */
    .bento-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

    .bento-card {
        padding: 25px 15px !important;
        min-height: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }

    .card-hero,
    .card-goal,
    .card-large {
        grid-column: span 2 !important;
    }

    .card-value {
        grid-column: span 1 !important;
    }

    .flip-inner {
        min-height: 220px !important;
        height: 220px !important;
    }

    .card-hero h3 {
        font-size: 1.6rem !important;
        word-break: keep-all;
    }

    .card-hero p {
        font-size: 0.95rem !important;
    }

    /* Roadmap Scroll for Mobile */
    .goal-roadmap {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 20px 0 40px 0 !important;
        /* Added vertical padding for tooltips */
        justify-content: flex-start !important;
        gap: 40px !important;
        -webkit-overflow-scrolling: touch;
        width: calc(100% + 40px) !important;
        /* Compensate for parent padding */
        margin-left: -20px !important;
        padding-left: 20px !important;
    }

    .goal-roadmap::before {
        top: 35px !important;
        /* Adjusted for larger icons/padding */
        width: 150% !important;
        /* Ensure line extends across all points */
    }

    .roadmap-point {
        flex: 0 0 100px !important;
        background: transparent !important;
    }

    /* Timeline Mobile */
    .timeline-container {
        padding-left: 30px;
        padding-right: 15px;
    }

    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 35px;
        padding-right: 0;
        text-align: left !important;
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }

    .timeline-marker {
        left: 13px !important;
        right: auto !important;
    }

    .timeline-year {
        position: relative;
        top: auto;
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
        margin-bottom: 10px;
        display: block;
        font-size: 1.4rem;
    }

    .timeline-content {
        padding: 20px;
        text-align: left !important;
    }

    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-left: none;
        border-right: 10px solid #fff;
    }

    /* Character & CM Song Mobile */
    .character-intro {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        text-align: center;
    }

    .char-visual img {
        max-width: 100%;
    }

    .char-info h3 {
        font-size: 1.5rem;
    }

    /* Partners Mobile */
    .partner-grid-static {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-item {
        padding: 15px;
        min-height: 100px;
    }
}

/* Partner Section Styles */
.partner-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #eee;
    background: #fff;
    color: #666;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 114, 66, 0.3);
}

.partner-grid-static {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

/* --- Mobile Optimization --- */
/* --- Mobile Optimization Disabled --- */
/* @media (max-width: 768px) { ... } */

/* --- Live Learning Portal Premium Styles --- */
.live-portal {
    background-color: #f8fafd;
    padding-top: 131px;
    min-height: 100vh;
}

/* Hero Section */
.portal-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #fff 0%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 114, 66, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.portal-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
}

.portal-subtitle {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.portal-prep-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.prep-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.prep-header i {
    color: #4caf50;
    font-size: 1.2rem;
}

.prep-header span {
    font-weight: 700;
    color: #333;
}

.portal-prep-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.hero-visual {
    flex: 0 0 455px;
    text-align: right;
}

.floating-mascot {
    width: 100%;
    max-width: 390px;
}

/* Dashboard Section */
.portal-dashboard {
    padding: 60px 0 100px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dashboard-card {
    border-radius: 30px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.dashboard-card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.card-glow {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 32px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    background: linear-gradient(135deg, var(--accent), transparent);
}

.dashboard-card:hover .card-glow {
    opacity: 1;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 35px;
}

.cat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #999;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.cat-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 10px 20px var(--accent-soft);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.zoom-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #f0f3f6;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.zoom-pill:hover {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-soft);
    transform: scale(1.03);
}

/* Accent Colors */
.accent-starter { --accent: #ff5e62; --accent-soft: rgba(255, 94, 98, 0.2); }
.accent-basic { --accent: #ffb347; --accent-soft: rgba(255, 179, 71, 0.2); }
.accent-middle { --accent: #48c6ef; --accent-soft: rgba(72, 198, 239, 0.2); }
.accent-special { --accent: #a18cd1; --accent-soft: rgba(161, 140, 209, 0.2); }

/* Double Column for Special */
.dashboard-card.accent-special {
    grid-column: span 3;
    padding: 40px;
}

.split-links {
    display: flex;
    gap: 40px;
}

.split-section {
    flex: 1;
}

.split-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f3f6;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 20px;
}

.split-divider {
    width: 1px;
    background: rgba(0,0,0,0.05);
}

/* Global Action Section */
.portal-utils {
    padding: 0 0 100px;
}

.util-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.util-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    text-decoration: none;
    transition: transform 0.3s;
}

.util-card:hover {
    transform: translateY(-5px);
}

.util-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.util-info p {
    color: #777;
    margin: 0;
    font-size: 0.95rem;
}

.util-action-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
}

.dl-group {
    display: flex;
    gap: 15px;
}

.dl-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dl-link.apple { background: #333; }
.dl-link:hover { background: var(--primary); }

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-card.accent-special { grid-column: span 2; }
}

@media (max-width: 992px) {
    .hero-flex { flex-direction: column; text-align: center; }
    .hero-text-content { max-width: 100%; }
    .hero-visual { display: none; }
    .util-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .portal-title { font-size: 2.2rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-card.accent-special { grid-column: span 1; }
    .split-links { flex-direction: column; }
    .split-divider { height: 1px; width: 100%; }
    .dl-group { flex-direction: column; }
    .portal-hero { padding: 60px 0 60px; }
}