/* CSS Variables */
:root {
    --primary-color: #0a2647;
    --secondary-color: #144272;
    --accent-color: #205295;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --teal-color: #20c997;
    --gold-color: #ffd700;
    
    --font-heading: 'Poppins', serif;
    --font-subheading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --shadow-xl: 0 10px 25px rgba(0,0,0,0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 76px; /* Offset for fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-primary {
    color: var(--primary-color);
}

.logo-secondary {
    color: var(--teal-color);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: var(--font-body);
    display: block;
    line-height: 1;
}

.nav-link {
    font-family: var(--font-subheading);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--teal-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(10, 38, 71, 0.85), rgba(20, 66, 114, 0.9)), 
                url('https://tse4.mm.bing.net/th/id/OIP.FyABWS7WPp1VXxGMZzT1DgHaE8?w=800&h=534&rs=1&pid=ImgDetMain&o=7&rm=3') center/cover no-repeat;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.hero-buttons .btn {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--teal-color);
    border-color: var(--teal-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1baa7e;
    border-color: #1baa7e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styling */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-subheading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--teal-color);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Program Cards */
.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-content {
    padding: 1.5rem;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.program-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #555;
}

.program-features li i {
    color: var(--teal-color);
    margin-right: 0.5rem;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

/* Metode Steps */
.metode-steps {
    position: relative;
}

.metode-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all 0.3s ease;
}

.metode-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--teal-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--gold-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

/* Artikel Cards */
.artikel-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.artikel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.artikel-image {
    height: 200px;
    overflow: hidden;
}

.artikel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artikel-card:hover .artikel-image img {
    transform: scale(1.1);
}

.artikel-content {
    padding: 1.5rem;
}

.artikel-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.artikel-meta i {
    color: var(--teal-color);
    margin-right: 0.5rem;
}

.artikel-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.artikel-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-control, .form-select {
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: pulse 2s infinite;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
    background-color: #128C7E;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-links h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--teal-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--teal-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--teal-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .booking-form {
        padding: 2rem 1rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}


/* Swiper Base - Improved */
.program-slider-container { 
    padding-bottom: 80px; 
    position: relative;
}

.swiper-slide { 
    width: 85%; 
    height: auto; 
    transition: var(--transition); 
}

.program-slide-card {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    margin-right: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.6s ease;
}

.program-slide-card:hover .slide-image img {
    transform: scale(1.05);
}

/* The Blue/Tosca Panel - Improved */
.slide-content-panel {
    position: absolute;
    left: 50%;
    width: 50%;
    background: rgba(43, 179, 196, 0.95);
    padding: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    z-index: 2;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-lg);
}

.program-title-display {
    font-family: 'Roboto Slab', serif;
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.program-desc-display {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.7;
}

.btn-explore {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-explore:hover {
    color: var(--dark-navy);
    border-color: var(--dark-navy);
    gap: 1rem;
}

/* Custom Navigation Icons */
.slider-nav-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.swiper-button-next-custom, .swiper-button-prev-custom {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-navy);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.swiper-button-next-custom:hover, .swiper-button-prev-custom:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 991px) {
    .slide-content-panel { 
        width: 80%; 
        left: 10%; 
        padding: 2rem;
        border-radius: var(--radius);
    }
    
    .program-title-display { 
        font-size: 1.5rem; 
    }
    
    .program-slide-card { 
        height: 400px; 
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 140px 0 100px;
        background-attachment: scroll;
    }
    
    .hero-section h1 { 
        font-size: 2.5rem; 
    }
    
    .hero-section .lead {
        font-size: 1.25rem;
    }
    
    .section-title { 
        font-size: 2rem; 
        margin-bottom: 3rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .program-card, .step-card, .testimonial-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.py-100 { 
    padding: 100px 0; 
}

.text-navy { 
    color: var(--dark-navy); 
}

.grayscale { 
    filter: grayscale(100%); 
    transition: var(--transition);
}

.grayscale-dark {
    filter: grayscale(100%) brightness(50%);
    transition: var(--transition);
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
}

.school-item:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.02);
}

.school-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-size: 1.1rem;
    font-weight: 600;
}

.border-primary-gold {
    border-color: var(--primary-gold) !important;
}

/* Form Styling - Improved */
.custom-input {
    border: none;
    border-bottom: 2px solid var(--border-light);
    border-radius: 0;
    padding: 0.75rem 0;
    background-color: transparent;
    transition: var(--transition);
    font-size: 1rem;
}

.custom-input:focus {
    box-shadow: none;
    border-color: var(--primary-gold);
    background-color: transparent;
}

.custom-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.btn-primary-gold {
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-gold:hover {
    background: linear-gradient(135deg, var(--dark-navy), var(--dark-navy));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.icon-box-small {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.875rem;
}

/* Form Select Styling */
.form-select.custom-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c5a059' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Card hover effects */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

/* List styling */
ul.list-unstyled li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

ul.list-unstyled li i {
    color: var(--primary-gold);
    width: 20px;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(43, 179, 196, 0.1);
    border-left-color: #2bb3c4;
}

.alert-warning {
    background-color: rgba(197, 160, 89, 0.1);
    border-left-color: var(--primary-gold);
}

/* Spacing utilities */
.section-spacing {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }
    
    .py-100 {
        padding: 60px 0;
    }
}

/* Grid spacing */
.row.g-4 > [class*='col-'] {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.img-fluid {
    border-radius: var(--radius);
}

/* Footer link hover */
a.text-decoration-none:hover {
    color: var(--primary-gold) !important;
    transition: var(--transition);
}

/* Location badges */
.location-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50px;
    color: var(--primary-gold);
    font-size: 0.875rem;
    margin: 0.25rem;
}
