:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navbar Styles */
.navbar {
    background-color: var(--dark-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(30, 41, 59, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-color);
    white-space: nowrap;
}

.nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Navbar Brand */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
    padding-top: 80px;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Hero Banner */
.hero-banner {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 2rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

/* Form Styles */
.form-control {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero img {
        margin-top: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-banner {
        margin-top: 2rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero p, .hero .btn {
    animation: fadeIn 1s ease-out;
}

/* Statistics Section */
.stat-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Testimonials Section */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    padding: 1rem;
}

.testimonial-content {
    text-align: center;
    padding: 2rem;
}

.testimonial-content i {
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.author-info {
    text-align: left;
}

.author-info h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-author:hover img {
    transform: scale(1.1);
}

.testimonial-controls {
    margin-top: 2rem;
}

.testimonial-controls button {
    margin: 0 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* News Cards Enhanced */
.news-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    height: 100%;
    position: relative;
}

.news-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.news-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover .news-image-wrapper::after {
    opacity: 1;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.15);
}

.news-category {
    display: inline-block;
    max-width: 70%;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    left: 20px;
    right: auto;
}

.news-category.pengumuman {
    background: #3b82f6;
    color: white;
}

.news-category.event {
    background: #10b981;
    color: white;
}

.news-category.kerjasama {
    background: #8b5cf6;
    color: white;
}

.news-card:hover .news-category {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.news-date i {
    color: var(--primary-color);
    margin-right: 8px;
}

.news-card:hover .news-date {
    color: var(--primary-color);
}

.news-card .card-body {
    padding: 2rem;
    background: white;
    position: relative;
    z-index: 1;
}

.news-card .card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .card-title {
    color: var(--primary-color);
}

.news-card .card-text {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.news-card .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.news-card .btn-link i {
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.news-card .btn-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.news-card .btn-link:hover i {
    transform: translateX(8px);
}

/* News Section Button */
.news-section .btn-primary {
    padding: 1rem 3rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.news-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Responsive News Cards */
@media (max-width: 1200px) {
    .news-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .news-image-wrapper {
        height: 220px;
    }
    
    .news-card .card-body {
        padding: 1.5rem;
    }
    
    .news-card .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .news-image-wrapper {
        height: 200px;
    }
    
    .news-card .card-title {
        font-size: 1.2rem;
    }
    
    .news-card .card-text {
        font-size: 0.95rem;
    }
    
    .news-category {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .news-image-wrapper {
        height: 180px;
    }
    
    .news-card .card-body {
        padding: 1.25rem;
    }
    
    .news-category {
        padding: 5px 12px;
        font-size: 0.75rem;
        top: 15px;
        right: 15px;
    }
    
    .news-card .card-title {
        font-size: 1.1rem;
    }
    
    .news-card .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* Footer Updates */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form .input-group {
    max-width: 300px;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Additional Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-item {
    animation: slideIn 0.5s ease-out;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .stat-item {
        padding: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .news-card .card-img-top {
        height: 180px;
    }
}

/* Hero Section Updates */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 180px;
}

/* Program Cards */
.program-card {
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.program-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.program-features li:last-child {
    border-bottom: none;
}

/* Facility Items */
.facility-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.facility-item h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--dark-color);
}

.facility-item p {
    color: #718096;
    margin: 0;
}

/* Form Updates */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232563eb' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .facility-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .program-features li {
        font-size: 0.9rem;
    }
    
    .facility-item h4 {
        font-size: 1.1rem;
    }
    
    .facility-item p {
        font-size: 0.9rem;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card, .facility-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Section Spacing */
section {
    padding: 6rem 0;
}

section h2 {
    margin-bottom: 4rem;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* News Search and Filter */
.news-filter {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    padding: 1rem 3rem 1rem 1.5rem;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.search-box i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.search-box input:focus + i {
    color: var(--primary-color);
}

.filter-tags {
    margin-top: 2rem;
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* News Pagination */
.news-pagination {
    margin-top: 3rem;
}

.pagination {
    gap: 0.5rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* News Card Animation */
.news-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.news-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* News Card Hover Effects */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.news-card:hover::before {
    opacity: 0.05;
}

.news-card .card-body {
    position: relative;
    z-index: 1;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .search-box input {
        padding: 0.75rem 2.5rem 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-filter {
        padding: 0.4rem 1.25rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .filter-tags {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .btn-filter {
        margin: 0;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Advanced Filter Styles */
.advanced-filter {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* News Card Share Buttons */
.news-share {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.news-card:hover .news-share {
    opacity: 1;
    transform: translateX(0);
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Related News Styles */
.related-news-card {
    height: 100%;
    transition: all 0.3s ease;
}

.related-news-card:hover {
    transform: translateY(-5px);
}

.related-news-image {
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* Archive View Styles */
.archive-list {
    max-height: 500px;
    overflow-y: auto;
}

.archive-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.archive-item:hover {
    background: #f8fafc;
}

.archive-date {
    font-size: 0.9rem;
    color: #64748b;
}

.archive-title {
    font-weight: 600;
    color: var(--dark-color);
    margin: 0.5rem 0;
}

/* List View Styles */
.news-list-view .news-card {
    display: flex;
    margin-bottom: 2rem;
}

.news-list-view .news-image-wrapper {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.news-list-view .card-body {
    flex-grow: 1;
    padding-left: 2rem;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .news-list-view .news-card {
        flex-direction: column;
    }

    .news-list-view .news-image-wrapper {
        width: 100%;
        height: 250px;
    }

    .news-list-view .card-body {
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .advanced-filter {
        padding: 1rem;
    }

    .form-select {
        margin-bottom: 1rem;
    }

    .share-btn {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .news-list-view .news-image-wrapper {
        height: 200px;
    }

    .archive-item {
        padding: 0.75rem;
    }
}