/**
 * Kings International School - Enhanced Styles
 * Inspired by Perse School Singapore's sophisticated design
 */

/* Enhanced Typography */
body {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Crown Accent Elements */
.crown-accent::before {
    content: "👑";
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Sophisticated Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L55 25 L70 25 L58 35 L63 50 L50 40 L37 50 L42 35 L30 25 L45 25 Z" fill="%23f5c842" opacity="0.03"/></svg>');
    opacity: 0.1;
}

/* Premium Card Styles */
.card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--secondary-color);
}

/* Yellow Accent Highlights */
.highlight-yellow {
    background: linear-gradient(120deg, var(--yellow-light) 0%, #fff 100%);
    padding: 60px 0;
}

/* Crown Dividers */
.crown-divider {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.crown-divider::before,
.crown-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.crown-divider::before {
    left: 0;
}

.crown-divider::after {
    right: 0;
}

.crown-divider .crown-icon {
    display: inline-block;
    font-size: 2rem;
    color: var(--secondary-color);
    background: white;
    padding: 0 20px;
}

/* Sophisticated Buttons */
.btn {
    font-family: var(--font-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Feature Boxes - Perse Style */
.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.feature-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-box:hover::after {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--yellow-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Stats Section - Premium Style */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="%23f5c842"/></svg>');
    opacity: 0.1;
}

.stat-box h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Navigation - Sophisticated */
.main-navigation ul li a {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after {
    width: 100%;
}

/* Top Bar - Premium */
.top-bar {
    background: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* Section Titles */
.section-title h2 {
    position: relative;
    display: inline-block;
}

/* .section-title h2::before {
    content: '👑';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
} */

/* Breadcrumbs */
.breadcrumbs {
    background: var(--yellow-light);
    border-bottom: 1px solid var(--secondary-color);
}

/* Premium Footer */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--navy-dark) 100%);
    border-top: 4px solid var(--secondary-color);
}

.footer-widget h3 {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

/* Testimonials */
.testimonial {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: var(--yellow-light);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Call to Action Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '👑';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-box h2 {
    color: var(--primary-color);
}

/* Image Overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0.7;
}

/* Academic Programs - Special Cards */
.program-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-header {
    background: linear-gradient(135deg, var(--yellow-light) 0%, #fff 100%);
    padding: 30px;
    text-align: center;
}

.program-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--yellow-light);
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease forwards;
}

/* Print Styles */
@media print {
    .top-bar,
    .menu-toggle,
    .hero-buttons,
    .site-footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --secondary-color: #ffd700;
        --primary-color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
