/* Base Styles */
:root {
    --primary: #1e5ba8;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
    border-width: 3px;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-login {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-login:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(30, 91, 168, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    color: var(--white);
    flex-shrink: 0;
}

.logo h1 {
    font-size: 28px;
    color: var(--white);
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 3px;
    font-weight: 400;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.nav-links li {
    position: relative;
    white-space: nowrap;
}

@media (min-width: 1200px) {
    .nav-links {
        gap: 4px;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 2px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Dropdown styles */
.dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown > a .fa-chevron-down {
    font-size: 9px;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 6px 0;
    margin-top: 4px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #333 !important;
    padding: 10px 18px !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-size: 13px;
    display: block;
}

.dropdown-menu a:hover {
    background: #f5f5f5 !important;
    color: #1e5ba8 !important;
    padding-left: 22px !important;
}

/* Navigation Link Hover Effect */
.nav-links > li > a {
    position: relative;
    padding: 8px 14px;
    overflow: hidden;
    display: inline-block;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links > li > a {
    position: relative;
    overflow: hidden;
}

.nav-links > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links > li > a:hover::before {
    left: 100%;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

.nav-links > li > a:hover {
    transform: translateY(-2px);
}

/* Dropdown Menu Link Hover Effect */
.dropdown-menu a {
    position: relative;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 20px;
    background-color: #1e5ba8;
    transition: width 0.3s ease;
}

.dropdown-menu a:hover::before {
    width: calc(100% - 40px);
}

/* Ensure the chevron icon doesn't affect the hover effect */
.dropdown > a i.fa-chevron-down {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* Keep the existing dropdown hover effect */
.dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown > a {
        justify-content: space-between;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 0 0 8px 8px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding-left: 30px !important;
    }
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    display: block;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-links .login-btn {
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    background: url('../assets/uns.jpeg') no-repeat center center/cover;
    pointer-events: none;
    filter: brightness(1.2);
}

/* Optimasi untuk mobile */
@media (max-width: 768px) {
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Fallback untuk browser yang tidak support video */
@supports not (object-fit: cover) {
    .hero-video {
        display: none;
    }
    
    .hero {
        background: linear-gradient(rgba(30, 91, 168, 0.85), rgba(41, 128, 185, 0.85)), 
                    url('../assets/uns.jpeg') no-repeat center center/cover;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 91, 168, 0.75), rgba(41, 128, 185, 0.75));
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: var(--light);
}

.about .section-title {
    margin-bottom: 35px;
    text-align: left;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.about-text .btn {
    margin-top: 20px;
}

.about-image {
    flex: 0.8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    padding: 20px;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 25px 0;
}

.feature {
    text-align: center;
    padding: 25px 18px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Lightning Effect - Before (sweep) */
.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 70%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
    opacity: 0;
}

.feature:hover::before {
    left: 100%;
    opacity: 1;
    animation: lightningSweep 0.8s ease-out;
}

/* Lightning Effect - After (pulse/glow) */
.feature::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(30, 91, 168, 0.2) 0%,
        rgba(41, 128, 185, 0.15) 20%,
        rgba(30, 91, 168, 0.1) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    animation: lightningPulse 2s ease-in-out infinite;
}

.feature:hover::after {
    opacity: 1;
}

.feature:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(30, 91, 168, 0.2), 
        0 0 20px rgba(231, 76, 60, 0.1),
        0 0 40px rgba(30, 91, 168, 0.3),
        0 0 80px rgba(41, 128, 185, 0.2),
        inset 0 0 60px rgba(30, 91, 168, 0.1);
    border: 1px solid rgba(30, 91, 168, 0.3);
}

@keyframes lightningSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes lightningPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    transition: var(--transition-slow);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature:hover i {
    transform: scale(1.15) rotate(5deg);
    color: var(--primary);
    text-shadow: 0 0 20px rgba(30, 91, 168, 0.5);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

.feature p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* Projects Section */
.featured-projects {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.featured-projects .section-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.latest-news .section-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.latest-news .section-title {
    background: linear-gradient(90deg, #1a1a1a 0%, #1e5ba8 30%, #2980b9 50%, #1e5ba8 70%, #1a1a1a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lighting 4s ease-in-out infinite;
    text-align: center;
    width: 100%;
}

.latest-news .section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: lightingSweep 4s ease-in-out infinite;
}

.latest-news .section-header .btn-link {
    display: inline-flex;
    justify-content: center;
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.featured-projects .section-title {
    display: inline-block;
    padding-bottom: 15px;
    cursor: default;
}

.featured-projects .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    border-radius: 50px;
    background: linear-gradient(120deg, #e74c3c, #1e5ba8, #f39c12);
    background-size: 200% 100%;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease;
}

.featured-projects .section-title:hover::after {
    width: 140px;
    opacity: 1;
    animation: sectionLineSweep 2s linear infinite;
}

@keyframes sectionLineSweep {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 640px;
    margin-top: 10px;
    line-height: 1.8;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    font-size: 15px;
}

.btn-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary);
}

.btn-link:hover i {
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

/* Projects Slider */
.projects-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.projects-slider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    width: 100%;
}

.projects-slider .project-card {
    min-width: 500px;
    width: 500px;
    max-width: 500px;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: slideInCard 0.4s ease-out forwards;
    transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(10px);
    pointer-events: none;
    position: relative;
    box-sizing: border-box;
}

.projects-slider .project-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
    animation: cardActivate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardActivate {
    0% {
        opacity: 0.5;
        transform: translateY(20px) scale(0.9);
        filter: blur(10px);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-slider .project-image {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 20px;
    border-radius: 15px;
    overflow: hidden;
    height: 320px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.projects-slider .project-card:hover .project-image {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.projects-slider .project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.projects-slider .project-card:hover .project-image::before {
    opacity: 0;
}

.projects-slider .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    filter: brightness(1) saturate(1);
}

.projects-slider .project-card:hover .project-image img {
    transform: scale(1);
    filter: brightness(1) saturate(1);
}

.projects-slider .project-content {
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}

.projects-slider .project-content .project-category {
    margin-left: auto;
    margin-right: auto;
}

.projects-slider .project-content p {
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.6;
    color: #64748b;
    transition: color 0.3s ease;
    margin: 0;
}

.projects-slider .project-card:hover .project-content p {
    color: #475569;
}

.projects-slider .project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.projects-slider .project-card:hover .project-content h3 {
    color: #1e5ba8;
}

.projects-slider .project-content .project-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.projects-slider .project-card:hover .project-content .project-category {
    background: linear-gradient(135deg, #1e5ba8, #2980b9);
    transform: scale(1.05);
}

.projects-slider .project-content .btn-link {
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.projects-slider .project-content .btn-link:hover {
    transform: translateX(3px);
}

.projects-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(30, 91, 168, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    opacity: 0.9;
    overflow: hidden;
}

.projects-slider-prev {
    left: 0;
}

.projects-slider-next {
    right: 0;
}

.projects-slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects-slider-btn:hover::before {
    width: 200px;
    height: 200px;
}

.projects-slider-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(30, 91, 168, 0.5);
}

.projects-slider-btn:active {
    transform: translateY(-50%) scale(1.05) rotate(0deg);
}

.projects-slider-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects-slider-next:hover i {
    transform: translateX(3px);
}

.projects-slider-prev:hover i {
    transform: translateX(-3px);
}

.projects-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.projects-slider-btn:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(30, 91, 168, 0.4);
}

.project-card {
    position: relative;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, rgba(30,91,168,0.4), rgba(231,76,60,0.4)) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(18, 43, 70, 0.09);
    transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.5s ease, border-color 0.5s ease;
    backface-visibility: hidden;
}

.project-card[onclick] {
    cursor: pointer;
}

.project-card::before,
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.project-card::before {
    background: transparent;
}

.project-card::after {
    background: transparent;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 0;
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1);
    filter: brightness(1);
}

.project-card .project-content,
.project-card .project-image {
    position: relative;
    z-index: 1;
}

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.project-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-summary {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-summary p {
    margin-bottom: 10px;
    color: var(--gray);
}

.project-summary p:last-child {
    margin-bottom: 0;
}

.project-summary b,
.project-summary strong {
    font-weight: 600;
    color: var(--dark);
}

.project-summary i,
.project-summary em {
    font-style: italic;
}

.project-summary u {
    text-decoration: underline;
}

.project-summary s,
.project-summary strike {
    text-decoration: line-through;
}

.project-summary span {
    display: inline;
}

.projects-slider .project-content .project-summary {
    font-size: 0.95rem;
    margin-bottom: 18px;
    line-height: 1.6;
    color: #64748b;
}

.projects-slider .project-content .project-summary p {
    margin-bottom: 8px;
    color: #64748b;
}

.projects-slider .project-content .project-summary p:last-child {
    margin-bottom: 0;
}

/* News Summary Styling */
.news-summary {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.news-summary p {
    margin-bottom: 10px;
    color: var(--gray);
}

.news-summary p:last-child {
    margin-bottom: 0;
}

.news-summary b,
.news-summary strong {
    font-weight: 600;
    color: var(--dark);
}

.news-summary i,
.news-summary em {
    font-style: italic;
}

.news-summary u {
    text-decoration: underline;
}

.news-summary s,
.news-summary strike {
    text-decoration: line-through;
}

.news-summary span {
    display: inline;
}

/* Achievement Description Styling */
.achievement-description {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.achievement-description p {
    margin-bottom: 10px;
    color: var(--gray);
}

.achievement-description p:last-child {
    margin-bottom: 0;
}

.achievement-description b,
.achievement-description strong {
    font-weight: 600;
    color: var(--dark);
}

.achievement-description i,
.achievement-description em {
    font-style: italic;
}

.achievement-description u {
    text-decoration: underline;
}

.achievement-description s,
.achievement-description strike {
    text-decoration: line-through;
}

.achievement-description span {
    display: inline;
}

/* News Section */
.latest-news {
    padding: 120px 40px;
    background-color: #ffffff;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    overflow: visible;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    overflow: visible;
    justify-items: stretch;
    align-items: stretch;
    grid-auto-flow: dense;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    overflow: visible;
}

.news-card-link.news-vertical {
    max-width: 380px;
    width: 100%;
    justify-self: stretch;
}

.news-card-link.news-horizontal {
    max-width: 100%;
    grid-column: span 2;
}

/* Hilirisasi Grid - Card berjejer ke kanan */
.latest-news#hilirisasi .news-grid,
.hilirisasi-grid-full {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: 0;
    max-width: 100%;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: visible;
    align-items: stretch;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.latest-news#hilirisasi .news-grid::-webkit-scrollbar,
.hilirisasi-grid-full::-webkit-scrollbar {
    height: 8px;
}

.latest-news#hilirisasi .news-grid::-webkit-scrollbar-track,
.hilirisasi-grid-full::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.latest-news#hilirisasi .news-grid::-webkit-scrollbar-thumb,
.hilirisasi-grid-full::-webkit-scrollbar-thumb {
    background: #1e5ba8;
    border-radius: 10px;
}

.latest-news#hilirisasi .news-grid::-webkit-scrollbar-thumb:hover,
.hilirisasi-grid-full::-webkit-scrollbar-thumb:hover {
    background: #155a9e;
}

.latest-news#hilirisasi .news-card-link.news-horizontal,
.hilirisasi-grid-full .news-card-link.news-horizontal {
    flex: 0 0 auto;
    min-width: 600px;
    max-width: 600px;
    width: 600px;
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .latest-news#hilirisasi .news-card-link.news-horizontal,
    .hilirisasi-grid-full .news-card-link.news-horizontal {
        min-width: 550px;
        max-width: 550px;
        width: 550px;
    }
}

@media (max-width: 1024px) {
    .latest-news#hilirisasi .news-grid,
    .hilirisasi-grid-full {
        flex-wrap: wrap;
        padding: 0 20px;
    }
    
    .latest-news#hilirisasi .news-card-link.news-horizontal,
    .hilirisasi-grid-full .news-card-link.news-horizontal {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-card-link.news-horizontal {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .news-card-link.news-horizontal {
        grid-column: span 1;
    }
}

.news-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    animation: fadeInUpCard 0.6s ease-out forwards;
    gap: 0;
}

/* Vertical Layout (Default) */
.news-card[data-layout="vertical"] {
    flex-direction: column;
    max-width: 380px;
    width: 100%;
}

/* Horizontal Layout */
.news-card[data-layout="horizontal"] {
    flex-direction: row;
    max-width: 100%;
}

.news-card[data-layout="horizontal"] .news-image {
    width: 40%;
    height: 100%;
    min-height: 280px;
    border-radius: 12px 0 0 12px;
    flex-shrink: 0;
}

.news-card[data-layout="horizontal"] .news-content {
    width: 60%;
    border-radius: 0 12px 12px 0;
    min-height: 280px;
    justify-content: center;
}

.news-card[data-index="0"],
.news-card[data-index="2"],
.news-card[data-index="4"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideLeft 0.3s ease-out 0.6s forwards;
}

.news-card[data-index="1"],
.news-card[data-index="3"],
.news-card[data-index="5"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideRight 0.3s ease-out 0.6s forwards;
}

/* Hover effect sudah dipindah ke bawah dengan lightning effect */

.news-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 0;
}

.news-card[data-layout="vertical"] .news-image {
    width: 100%;
    height: 220px;
    border-radius: 12px 12px 0 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    z-index: 1;
    position: relative;
    background: #ffffff;
    margin: 0;
    text-align: center;
    align-items: center;
}

.news-card[data-layout="vertical"] .news-content {
    min-height: 180px;
    border-radius: 0 0 12px 12px;
}

.news-card[data-layout="horizontal"] .news-content {
    min-height: auto;
    border-radius: 0 12px 12px 0;
}

.news-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
    text-align: center;
    width: 100%;
}

.news-card:hover .news-content h3 {
    color: #1e5ba8;
}

.news-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
}

.news-card:hover .news-content p {
    color: #475569;
}

.news-content .news-summary {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    text-align: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-content .news-summary p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 8px 0;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
}

.news-content .news-summary p:last-child {
    margin-bottom: 0;
}

.news-content .news-summary b,
.news-content .news-summary strong {
    font-weight: 600;
    color: #1a1a1a;
}

.news-content .news-summary i,
.news-content .news-summary em {
    font-style: italic;
}

.news-content .news-summary u {
    text-decoration: underline;
}

.news-content .news-summary s,
.news-content .news-summary strike {
    text-decoration: line-through;
}

.news-content .news-summary span {
    display: inline;
}

.news-card:hover .news-content .news-summary {
    color: #475569;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8f0;
    font-size: 0.8125rem;
    color: #64748b;
    z-index: 1;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-card:hover .news-meta-item {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e5ba8;
}

.news-meta-item i {
    font-size: 14px;
    color: #1e5ba8;
}

.news-meta-item span {
    font-weight: 500;
    font-size: 0.8125rem;
}

.news-uploader {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.news-card:hover .news-uploader {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.news-uploader-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.news-uploader-icon.admin {
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
}

.news-uploader-icon.mahasiswa {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.news-uploader-icon.dosen {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.news-uploader span {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
    transition: color 0.3s ease;
}

.news-card:hover .news-uploader span {
    color: #1e5ba8;
}

.news-accent {
    display: none; /* Hilangkan garis biru */
}

/* Lightning Hover Effect untuk Card */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.6) 70%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0;
}

.news-card:hover::before {
    left: 100%;
    opacity: 1;
    animation: lightningSweep 0.8s ease-out;
}

.news-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(30, 91, 168, 0.2) 0%,
        rgba(41, 128, 185, 0.15) 20%,
        rgba(30, 91, 168, 0.1) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
    animation: lightningPulse 2s ease-in-out infinite;
}

.news-card:hover::after {
    opacity: 1;
}

.news-card:hover {
    box-shadow: 
        0 8px 24px rgba(30, 91, 168, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(30, 91, 168, 0.3),
        0 0 80px rgba(41, 128, 185, 0.2),
        inset 0 0 60px rgba(30, 91, 168, 0.1);
    border-color: rgba(30, 91, 168, 0.5);
    transform: translateY(-4px) scale(1.01);
}

@keyframes lightningSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes lightningPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.partners-slider-wrapper {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-slider {
    display: flex;
    align-items: center;
    gap: 30px;
    animation: scroll-partners 40s linear infinite;
    width: fit-content;
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partner-logo {
    position: relative;
    overflow: hidden;
    flex: 0 0 210px;
    width: 210px;
    height: 160px;
    padding: 24px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px;
}

.partner-logo:hover::before {
    opacity: 0;
}

.partner-logo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.partner-logo-image {
    width: 130px;
    height: 80px;
    border-radius: 12px;
    border: none;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.partner-logo-image.placeholder {
    border: 1px dashed rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.4);
}

.partner-logo-image.placeholder span {
    pointer-events: none;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    text-transform: uppercase;
}

.partner-logo-image span {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.partner-logo:hover .partner-logo-image {
    border: none;
    background: #ffffff !important;
}

.partner-logo h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff !important;
    padding: 8px;
    display: block;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Achievements Modern Section */
.achievements-modern {
    padding: 120px 40px;
    background: #ffffff;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    overflow: visible;
}

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

.achievements-modern-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achievements-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1e5ba8;
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(30, 91, 168, 0.08);
    border-radius: 50px;
}

.achievements-modern-header .section-title {
    margin-bottom: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #1a1a1a 0%, #1e5ba8 30%, #2980b9 50%, #1e5ba8 70%, #1a1a1a 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lighting 4s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
    .achievements-modern-header .section-title {
        color: #1a1a1a;
        background: none;
    }
}

@keyframes lighting {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.achievements-modern-header .section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: lightingSweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightingSweep {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 150%;
        opacity: 1;
    }
    51% {
        opacity: 0;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.achievements-modern-header .section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
    font-weight: 400;
    margin-top: 0;
    display: block;
    width: 100%;
    text-align: center;
}

.achievements-view-all {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.achievements-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    overflow: visible;
}

.achievement-modern-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.achievement-modern-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0;
    opacity: 0;
    animation: fadeInUpCard 0.6s ease-out forwards;
    gap: 0;
}

@keyframes fadeInUpCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.achievement-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 91, 168, 0.02) 0%, rgba(41, 128, 185, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.achievement-modern-card[data-index="0"],
.achievement-modern-card[data-index="2"],
.achievement-modern-card[data-index="4"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideLeft 0.3s ease-out 0.6s forwards;
}

.achievement-modern-card[data-index="1"],
.achievement-modern-card[data-index="3"],
.achievement-modern-card[data-index="5"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideRight 0.3s ease-out 0.6s forwards;
}

@keyframes slideLeft {
    to {
        transform: translateX(-15px);
    }
}

@keyframes slideRight {
    to {
        transform: translateX(15px);
    }
}

.achievement-modern-card:hover {
    box-shadow: 0 4px 16px rgba(30, 91, 168, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 91, 168, 0.4);
}

/* Achievement Image */
.achievement-modern-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    margin: 0;
    padding: 0;
}

.achievement-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Achievement Body */
.achievement-modern-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    z-index: 1;
    position: relative;
    background: #ffffff;
    min-height: 180px;
    border-radius: 0 0 12px 12px;
    margin: 0;
}

.achievement-modern-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.achievement-modern-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(30, 91, 168, 0.2);
}

.achievement-modern-icon i {
    font-size: 1.25rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.achievement-modern-content {
    flex: 1;
}

.achievement-modern-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.2px;
}

.achievement-modern-card:hover .achievement-modern-content h3 {
    color: #1e5ba8;
}

.achievement-modern-content p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-modern-card:hover .achievement-modern-content p {
    color: #475569;
}

.achievement-modern-content .achievement-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-modern-content .achievement-description p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 8px 0;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
}

.achievement-modern-content .achievement-description p:last-child {
    margin-bottom: 0;
}

.achievement-modern-content .achievement-description b,
.achievement-modern-content .achievement-description strong {
    font-weight: 600;
    color: #1a1a1a;
}

.achievement-modern-content .achievement-description i,
.achievement-modern-content .achievement-description em {
    font-style: italic;
}

.achievement-modern-content .achievement-description u {
    text-decoration: underline;
}

.achievement-modern-content .achievement-description s,
.achievement-modern-content .achievement-description strike {
    text-decoration: line-through;
}

.achievement-modern-content .achievement-description span {
    display: inline;
}

.achievement-modern-card:hover .achievement-modern-content .achievement-description {
    color: #475569;
}

.achievement-modern-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8f0;
    font-size: 0.8125rem;
    color: #64748b;
    z-index: 1;
    position: relative;
    flex-wrap: wrap;
}

.achievement-modern-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.achievement-modern-card:hover .achievement-modern-meta-item {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e5ba8;
}

.achievement-modern-meta-item i {
    font-size: 0.875rem;
    color: #1e5ba8;
    transition: transform 0.3s ease;
}


.achievement-modern-meta-item span {
    font-weight: 500;
    font-size: 0.8125rem;
}

.achievement-modern-uploader {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.achievement-modern-card:hover .achievement-modern-uploader {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.achievement-modern-uploader-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}


.achievement-modern-uploader-icon.admin {
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
}

.achievement-modern-uploader-icon.mahasiswa {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.achievement-modern-uploader-icon.dosen {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.achievement-modern-uploader span {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #475569;
    transition: color 0.3s ease;
}

.achievement-modern-card:hover .achievement-modern-uploader span {
    color: #1e5ba8;
}

/* Accent Line */
.achievement-modern-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e5ba8 0%, #2980b9 50%, #1e5ba8 100%);
    background-size: 200% 100%;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.achievement-modern-card:hover .achievement-modern-accent {
    width: 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

/* Stagger animation for modern cards */
.achievement-modern-card[data-index="0"] { animation-delay: 0.7s; }
.achievement-modern-card[data-index="1"] { animation-delay: 0.8s; }
.achievement-modern-card[data-index="2"] { animation-delay: 0.9s; }
.achievement-modern-card[data-index="3"] { animation-delay: 1.0s; }
.achievement-modern-card[data-index="4"] { animation-delay: 1.1s; }
.achievement-modern-card[data-index="5"] { animation-delay: 1.2s; }

/* Responsive */
@media (max-width: 1024px) {
    .achievements-modern {
        padding: 100px 30px;
    }
    
    .achievements-modern-grid {
        max-width: 100%;
        gap: 30px;
        padding: 0 20px;
    }
    
    .achievement-modern-card {
        max-width: 100%;
        transform: translateX(0) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .achievement-modern-card:hover {
        transform: translateX(0) !important;
    }
}

@media (max-width: 768px) {
    .achievements-modern {
        padding: 80px 0;
    }
    
    .achievements-modern-header {
        margin-bottom: 50px;
    }
    
    .achievements-modern-header .section-title {
        font-size: 2rem;
    }
    
    .achievements-modern {
        padding: 80px 20px;
    }
    
    .achievements-modern-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    
    .achievement-modern-card {
        max-width: 100%;
        transform: translateX(0) !important;
    }
    
    .achievement-modern-image {
        height: 200px;
    }
    
    .achievement-modern-body {
        padding: 18px;
    }
    
    .achievement-modern-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .achievement-modern-meta-item,
    .achievement-modern-uploader {
        width: 100%;
        justify-content: flex-start;
    }
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .achievement-modern-icon {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .achievements-modern-header .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .achievement-modern-body {
        padding: 20px;
    }
    
    .achievement-modern-content h3 {
        font-size: 1.25rem;
    }
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 40px;
}

/* Commercialization Section */
.commercialization {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.commercialization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 91, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.commercialization .container {
    position: relative;
    z-index: 1;
}

.commercialization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.commercialization-card {
    display: flex;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid rgba(30, 91, 168, 0.08);
}

.commercialization-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 91, 168, 0.08), rgba(231, 76, 60, 0.08));
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.commercialization-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 1;
}

.commercialization-card:hover::before {
    opacity: 1;
}

.commercialization-card:hover::after {
    opacity: 1;
}

.commercialization-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(30, 91, 168, 0.25), 0 0 40px rgba(231, 76, 60, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(30, 91, 168, 0.3);
}

.commercialization-image {
    flex: 0 0 280px;
    height: auto;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
}

.commercialization-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.commercialization-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: var(--transition);
}

.commercialization-badge i {
    font-size: 1.3rem;
    color: var(--primary);
}

.commercialization-card:hover .commercialization-badge {
    transform: scale(1.1) rotate(5deg);
    background: var(--white);
    box-shadow: 0 6px 20px rgba(30, 91, 168, 0.3);
}

.commercialization-card:hover .commercialization-image img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

.commercialization-content {
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.commercialization-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
    transition: var(--transition);
}

.commercialization-card:hover .commercialization-content h3 {
    color: var(--primary);
}

.commercialization-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Hilirisasi Badge */
.hilirisasi-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.hilirisasi-badge i {
    font-size: 1.3rem;
    color: var(--primary);
}

.news-card:hover .hilirisasi-badge {
    transform: scale(1.1) rotate(5deg);
    background: var(--white);
    box-shadow: 0 6px 20px rgba(30, 91, 168, 0.3);
}

.hilirisasi-card .news-image {
    position: relative;
}

.hilirisasi-card .news-content h3 {
    color: var(--dark);
    transition: color 0.3s ease;
}

.hilirisasi-card:hover .news-content h3 {
    color: var(--primary);
}

/* Animasi miring untuk card hilirisasi - sama seperti news card */
.hilirisasi-card[data-index="0"],
.hilirisasi-card[data-index="2"],
.hilirisasi-card[data-index="4"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideLeft 0.3s ease-out 0.6s forwards;
}

.hilirisasi-card[data-index="1"],
.hilirisasi-card[data-index="3"],
.hilirisasi-card[data-index="5"] {
    animation: fadeInUpCard 0.6s ease-out forwards, slideRight 0.3s ease-out 0.6s forwards;
}

.commercialization-content .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
}

.commercialization-content .btn-link:hover {
    color: var(--secondary);
    gap: 12px;
}

.commercialization-content .btn-link i {
    transition: var(--transition);
}

.commercialization-content .btn-link:hover i {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section .logo h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 5px;
}

.footer-section .logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.footer-section p, 
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: block;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    transition: var(--transition);
    padding-left: 0;
}

.footer-section a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.social-links a:hover::before {
    width: 100px;
    height: 100px;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about {
        padding: 50px 0;
    }
    
    .about-content {
        flex-direction: column;
        gap: 35px;
    }
    
    .about-image {
        margin-top: 0;
        max-width: 100%;
        min-height: 350px;
    }
    
    .about-image img {
        padding: 15px;
    }
    
    .about-features {
        gap: 18px;
        margin: 25px 0 20px 0;
    }
    
    .feature {
        padding: 22px 15px;
    }
    
    .feature i {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .feature h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .feature p {
        font-size: 0.85rem;
    }
    
    .projects-grid,
    .latest-news {
        padding: 100px 30px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
        padding: 0 20px;
        justify-items: stretch;
    }
    
    .news-card-link.news-horizontal {
        grid-column: span 1;
    }
    
    .news-card-link {
        max-width: 100%;
    }
    
    .news-card,
    .hilirisasi-card {
        max-width: 100%;
        transform: translateX(0) !important;
    }
    
    .news-card[data-layout="horizontal"],
    .hilirisasi-card[data-layout="horizontal"] {
        flex-direction: column;
    }
    
    .news-card[data-layout="horizontal"] .news-image,
    .hilirisasi-card[data-layout="horizontal"] .news-image {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
        min-height: auto;
    }
    
    .news-card[data-layout="horizontal"] .news-content,
    .hilirisasi-card[data-layout="horizontal"] .news-content {
        width: 100%;
        border-radius: 0 0 12px 12px;
        min-height: auto;
    }
    
    .news-image {
        height: 200px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commercialization-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-slider-wrapper {
        padding: 0 70px;
    }
    
    .projects-slider .project-card {
        max-width: 100%;
        padding: 18px;
    }
    
    .projects-slider .project-image {
        width: 95%;
        max-width: 380px;
        height: 280px;
    }
    
    .projects-slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .projects-slider-prev {
        left: 10px;
    }
    
    .projects-slider-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 8px;
    }
    
    .login-btn {
        margin-top: 20px;
        margin-left: 0 !important;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about {
        padding: 40px 0;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .about-image {
        min-height: 300px;
    }
    
    .about-image img {
        padding: 10px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0 15px 0;
    }
    
    .feature {
        padding: 20px 15px;
    }
    
    .feature i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature h3 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .feature p {
        font-size: 0.8rem;
    }
    
    .projects-grid,
    .latest-news {
        padding: 80px 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
        justify-items: stretch;
    }
    
    .news-card-link.news-horizontal {
        grid-column: span 1;
    }
    
    .news-card-link {
        max-width: 100%;
    }
    
    .news-card {
        max-width: 100%;
        transform: translateX(0) !important;
    }
    
    .news-card[data-layout="horizontal"] {
        flex-direction: column;
    }
    
    .news-card[data-layout="horizontal"] .news-image {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
        min-height: auto;
    }
    
    .news-card[data-layout="horizontal"] .news-content {
        width: 100%;
        border-radius: 0 0 12px 12px;
        min-height: auto;
    }
    
    .news-card:hover,
    .hilirisasi-card:hover {
        transform: translateX(0) !important;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 18px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        flex: 0 0 180px;
        width: 180px;
        height: 135px;
        padding: 18px;
    }
    
    .partner-logo-image {
        width: 100px;
        height: 65px;
    }
    
    .partner-logo h4 {
        font-size: 0.85rem;
    }
    
    .partners-slider {
        gap: 20px;
    }
    
    .projects-slider-wrapper {
        padding: 0 50px;
    }
    
    .projects-slider .project-card {
        max-width: 100%;
        padding: 12px;
    }
    
    .projects-slider .project-image {
        width: 95%;
        max-width: 100%;
        height: 240px;
    }
    
    .projects-slider .project-content {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .projects-slider .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .projects-slider .project-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .projects-slider .project-content .project-category {
        margin-bottom: 12px;
    }
    
    .projects-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .projects-slider-prev {
        left: 5px;
    }
    
    .projects-slider-next {
        right: 5px;
    }
    
    .commercialization-card {
        flex-direction: column;
    }
    
    .commercialization-image {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .commercialization-image img {
        min-height: 250px;
    }
    
    .commercialization-content {
        padding: 25px;
    }
    
    .commercialization-content h3 {
        font-size: 1.3rem;
    }
    
    .commercialization-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .research-visual {
        min-height: 320px;
    }

    .stat-card,
    .stat-card.secondary {
        position: static;
        margin: 15px 20px;
        max-width: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .research-tags {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .logo span {
        font-size: 9px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .partner-logo {
        flex: 0 0 150px;
        width: 150px;
        height: 120px;
    }
    
    .partner-logo-image {
        width: 90px;
        height: 55px;
    }
    
    .partner-logo h4 {
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .commercialization-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .commercialization {
        padding: 60px 0;
    }
    
    .commercialization-card {
        border-radius: 15px;
    }
    
    .commercialization-badge {
        width: 45px;
        height: 45px;
        top: 10px;
        right: 10px;
    }
    
    .commercialization-badge i {
        font-size: 1.1rem;
    }
}
/* ========== Page Loading Animation ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e5ba8 0%, #2980b9 50%, #1e5ba8 100%);
    background-size: 200% 200%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-right-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    animation: pulse 1.5s ease-in-out infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.loader-subtext {
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.9;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.9;
    }
}

/* ========== Scroll Animations ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delays for grid items */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.fade-in-up:nth-child(5) { transition-delay: 0.5s; }
.fade-in-up:nth-child(6) { transition-delay: 0.6s; }

/* Smooth reveal for sections */
section {
    opacity: 0;
    animation: fadeInSection 1s ease-out forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
    }
}

/* Hero section special animation */
.hero {
    animation: fadeInHero 1.2s ease-out forwards;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
