/**
 * Style CSS untuk Website Beasiswa UIN SMH
 * Warna Utama: Biru Modern #1e40af
 * Warna Aksen: Biru Cerah #3b82f6
 * Background: Putih Bersih #ffffff
 */

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

:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #0ea5e9;
    --secondary-light: #38bdf8;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    --bg-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(30, 64, 175, 0.08);
    --shadow: 0 4px 15px rgba(30, 64, 175, 0.12);
    --shadow-lg: 0 10px 40px rgba(30, 64, 175, 0.15);
    --shadow-hover: 0 15px 50px rgba(30, 64, 175, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Offset untuk sticky header */
}

/* Selection Color */
::selection {
    background-color: var(--secondary-color);
    color: white;
}

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

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

ul {
    list-style: none;
}

/* ====================================
   Container & Layout
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 400;
}

/* ====================================
   Header & Navigation
   ==================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-top {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    font-weight: 500;
    padding: 10px 16px;
    position: relative;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ====================================
   Slideshow / Carousel
   ==================================== */
.slideshow-section {
    position: relative;
    overflow: hidden;
    height: 500px;
    background-color: #000;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 1s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

.slide-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Slideshow Navigation Dots */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Slideshow Arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 64, 175, 0.7);
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    border: none;
}

.slide-arrow:hover {
    background-color: var(--primary-color);
}

.slide-arrow.prev {
    left: 20px;
}

.slide-arrow.next {
    right: 20px;
}

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

/* ====================================
   University Description
   ==================================== */
.university-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.university-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.university-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.university-text {
    animation: fadeInLeft 1s ease-out;
}

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

.university-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.university-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
}

.university-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.9;
    font-size: 1.05rem;
}

.university-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeInRight 1s ease-out;
}

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

.university-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.3), rgba(14, 165, 233, 0.2));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.university-image:hover::before {
    opacity: 1;
}

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

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

/* ====================================
   Scholarship Cards
   ==================================== */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.scholarship-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.scholarship-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.scholarship-card:hover::before {
    transform: scaleX(1);
}

.scholarship-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.scholarship-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: ripple 15s infinite;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

.scholarship-card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scholarship-provider {
    font-size: 0.95rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    backdrop-filter: blur(10px);
}

.scholarship-card-body {
    padding: 20px;
}

.scholarship-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.scholarship-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.info-item strong {
    color: var(--primary-color);
}

.scholarship-deadline {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    border: 2px solid #ffc107;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #856404;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
}

.scholarship-deadline::before {
    content: '⚡';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

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

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

.btn-full {
    width: 100%;
}

/* ====================================
   News Section
   ==================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05), rgba(14, 165, 233, 0.05));
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-hover);
}

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

.news-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.news-card:hover .news-image::before {
    opacity: 1;
}

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

.news-card:hover .news-image img {
    transform: scale(1.15) rotate(2deg);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.news-meta span {
    background-color: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.news-card:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-link {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}

.news-link::after {
    content: '→';
    transition: var(--transition);
}

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

.news-link:hover::after {
    transform: translateX(5px);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light), var(--secondary-color));
}

.footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

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

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

.footer-section p {
    line-height: 1.9;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    padding-left: 20px;
    position: relative;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    transition: var(--transition);
}

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

.footer-links a:hover::before {
    color: var(--secondary-light);
    left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 8px 0;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 768px) {
    /* Header Responsive */
    .header-top {
        display: none; /* Hide top bar on mobile for cleaner look */
    }
    
    .header-main .container {
        position: relative;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.75rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 101;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 18px 30px;
        border-radius: 0;
        border-left: 4px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-menu a::before {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(255, 255, 255, 0.15);
        border-left-color: var(--secondary-color);
        transform: translateX(0);
        padding-left: 40px;
    }
    
    /* Mobile Menu Overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .slideshow-section {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .university-content {
        grid-template-columns: 1fr;
    }
    
    .scholarship-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info span {
        display: block;
        margin-bottom: 5px;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu.active::before {
        right: 0;
    }
    
    .slide-arrow {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
    
    .slide-arrow.prev {
        left: 10px;
    }
    
    .slide-arrow.next {
        right: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}
