/* ===========================================
   Intara AI - Main Stylesheet
   Laravel-style .NET WebApp
   =========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors */
    --ai-blue: #0066FF;
    --ai-purple: #6366F1;
    --ai-cyan: #06B6D4;
    --museakademi: #FF5733;
    --lumiverx: #007BFF;
    --brotani: #28A745;

    /* Dark Theme */
    --bg-dark: #0F0F23;
    --bg-dark-secondary: #1E1E3F;
    --text-light: #F3F4F6;
    --text-muted: #D1D5DB;

    /* Light Theme */
    --bg-light: #FFFFFF;
    --bg-light-secondary: #F3F4F6;
    --text-dark: #1F2937;
    --text-dark-muted: #6B7280;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

body.light {
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.ai-gradient-text {
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Custom Scrollbar for horizontal view */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.text-museakademi {
    color: var(--museakademi);
    font-weight: 600;
}

.text-lumiverx {
    color: var(--lumiverx);
    font-weight: 600;
}

.text-brotani {
    color: var(--brotani);
    font-weight: 600;
}

.gradient-blue-purple {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
}

.gradient-purple-cyan {
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-cyan));
}

.gradient-cyan-green {
    background: linear-gradient(135deg, var(--ai-cyan), var(--brotani));
}

.gradient-green-orange {
    background: linear-gradient(135deg, var(--brotani), var(--museakademi));
}

/* ===== Animations ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    }

    100% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(6, 182, 212, 0.2);
    }
}

@keyframes neural-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.05);
    }
}

@keyframes glow-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.animate-neural-pulse {
    animation: neural-pulse 3s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
    padding-top: 64px;
}

.neural-grid {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.floating-dot {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    top: 80px;
    left: 40px;
    width: 16px;
    height: 16px;
    background: var(--ai-blue);
    opacity: 0.6;
}

.dot-2 {
    top: 160px;
    right: 80px;
    width: 24px;
    height: 24px;
    background: var(--ai-purple);
    opacity: 0.4;
    animation-delay: -1s;
}

.dot-3 {
    bottom: 160px;
    left: 80px;
    width: 12px;
    height: 12px;
    background: var(--ai-cyan);
    opacity: 0.7;
    animation-delay: -2s;
}

.dot-4 {
    top: 240px;
    right: 160px;
    width: 20px;
    height: 20px;
    background: var(--museakademi);
    opacity: 0.5;
    animation-delay: -3s;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    color: var(--ai-cyan);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin: 24px 0;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.text-light {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.btn-primary i {
    margin-right: 8px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: 2px solid #4B5563;
    color: var(--text-muted);
    border-radius: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    color: var(--ai-cyan);
    border-color: var(--ai-cyan);
}

.btn-secondary i {
    margin-right: 8px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.ai-node {
    position: relative;
}

.ai-node-outer {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.ai-node-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ai-brain-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neural-pulse 3s ease-in-out infinite;
}

.rotating-badges {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rotating-badge {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    animation: glow-rotate 4s linear infinite;
}

.badge-edu {
    top: 16px;
    right: 32px;
    background: var(--museakademi);
}

.badge-health {
    bottom: 32px;
    left: 16px;
    background: var(--lumiverx);
    animation-delay: -1s;
}

.badge-agri {
    top: 64px;
    left: 32px;
    background: var(--brotani);
    animation-delay: -2s;
}

.decoration {
    position: absolute;
    border: 4px solid rgba(0, 102, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    top: -40px;
    right: -40px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    transform: rotate(45deg);
}

.decoration-2 {
    bottom: -40px;
    left: -40px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    animation-delay: -1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--ai-cyan);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 4px;
    height: 12px;
    background: var(--ai-cyan);
    border-radius: 9999px;
    margin-top: 8px;
    animation: neural-pulse 2s ease-in-out infinite;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-light);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 768px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-section {
    position: relative;
    padding: 160px 0 96px;
    background: var(--bg-dark-secondary);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mission-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mission-card {
    border-radius: 24px;
    padding: 32px;
    transition: all var(--transition-medium);
}

.mission-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mission-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.mission-icon i {
    font-size: 28px;
    color: white;
}

.mission-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-light);
}

.mission-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.values-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    text-align: center;
    transition: transform var(--transition-fast);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.value-icon i {
    font-size: 28px;
    color: white;
}

.value-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-light);
}

.value-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ===== Products Section ===== */
.products-section {
    padding: 96px 0;
    background: var(--bg-dark);
}

.products-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--bg-dark-secondary);
    border-radius: 24px;
    padding: 32px;
    border-top: 4px solid;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.product-bg-icon {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8rem;
    opacity: 0.1;
}

.product-content {
    position: relative;
    z-index: 10;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-icon i {
    font-size: 24px;
    color: white;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
    color: var(--text-light);
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-tag {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
}

.product-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.product-link i {
    margin-left: 8px;
}

.product-link:hover {
    transform: translateX(8px);
}

.product-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Case Studies Section ===== */
.case-studies-section {
    padding: 96px 0;
    background: var(--bg-dark-secondary);
}

.case-studies-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-study-card {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 32px;
    border-left: 4px solid;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium);
}

.case-study-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.case-study-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.case-study-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
}

.case-study-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-light);
}

.case-study-sector {
    font-size: 14px;
    font-weight: 500;
}

.case-study-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.case-study-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metrics-list {
    display: flex;
    gap: 16px;
}

.metric {
    font-weight: 600;
    font-size: 14px;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 96px 0;
    background: var(--bg-dark);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--text-light);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: white;
    transition: transform var(--transition-fast);
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.info-label {
    color: var(--text-dark-muted);
    font-size: 14px;
}

.info-value {
    color: var(--text-light);
    font-weight: 600;
}

.social-section {
    margin-top: 32px;
}

.social-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--hover-color);
    color: white;
    transform: scale(1.1);
}

.contact-form {
    border-radius: 24px;
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #4B5563;
    background: var(--bg-dark-secondary);
    color: var(--text-light);
    font-size: 16px;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ai-cyan);
}

.form-group textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-purple) 50%, var(--ai-cyan) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.submit-btn i {
    margin-right: 8px;
}

.news-section {
    padding: 96px 0;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.news-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.news-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse-glow 3s ease-in-out infinite alternate;
}

.orb-1 {
    top: 25%;
    left: 25%;
    width: 384px;
    height: 384px;
    background: rgba(37, 99, 235, 0.1);
    /* blue-600 */
}

.orb-2 {
    bottom: 25%;
    right: 25%;
    width: 384px;
    height: 384px;
    background: rgba(147, 51, 234, 0.1);
    /* purple-600 */
    animation-delay: -1s;
}

.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.header-action {
    margin-top: 32px;
}

.header-action a i {
    margin-left: 8px;
}

.news-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 32px;
    margin-top: 48px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.news-card {
    flex: 0 0 350px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .news-card {
        flex: 0 0 380px;
    }
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.news-card-image {
    height: 192px;
    /* h-48 */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.news-tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.2);
    color: var(--ai-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    font-size: 14px;
    color: var(--text-muted);
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-light);
}

.news-title a {
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--ai-cyan);
}

.news-summary {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover {
    color: var(--ai-cyan);
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

/* Line Clamping Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== News List Page ===== */
.news-list-page {
    padding: 96px 0 64px;
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.news-list-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: rgba(6, 182, 212, 0.05);
    /* cyan */
}

.news-list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.news-list-header {
    text-align: center;
    margin-bottom: 64px;
    padding-top: 64px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-grid-card {
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark-secondary);
}

.news-card-placeholder i {
    font-size: 48px;
    color: #4B5563;
}

.news-empty-state {
    margin-top: 80px;
    text-align: center;
}

.news-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 50%;
    margin-bottom: 24px;
}

.news-empty-icon i {
    font-size: 48px;
    color: #9CA3AF;
}

.news-empty-state p {
    font-size: 20px;
    color: var(--text-muted);
}

/* ===== Search Box ===== */
.news-search-container {
    max-width: 100%;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.news-search-form {
    display: flex;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.news-search-input {
    flex: 1;
    padding: 20px 28px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--text-light);
    outline: none;
    transition: all var(--transition-fast);
}

.news-search-input::placeholder {
    color: var(--text-muted);
}

.news-search-input:focus {
    border-color: var(--ai-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.news-search-btn {
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
}

.news-search-results-info {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.news-search-results-info strong {
    color: var(--ai-cyan);
}

.news-clear-search {
    margin-left: 12px;
    color: var(--ai-cyan);
    text-decoration: underline;
    cursor: pointer;
}

.news-clear-search:hover {
    color: var(--ai-purple);
}

/* ===== Pagination ===== */
.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
    border-color: transparent;
    transform: scale(1.05);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.pagination-info strong {
    color: var(--ai-cyan);
}