/* 
 * Milton International School - Website Styles
 * English Version CSS with Original Slider Design
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    padding: 8px 20px;
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
    position: relative;
    font-weight: 500;
}

.nav-item .arrow {
    font-size: 8px;
    margin-left: 5px;
    opacity: 0.4;
}

.nav-item:hover,
.nav-item.active {
    color: #5cb531;
}

.search-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.3s;
}

.search-btn:hover {
    color: #5cb531;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* ==================== Hero Section - Original Image Slider ==================== */
.hero {
    position: relative;
    width: 100%;
    padding-top: 80px;
    overflow: hidden;
    background: #f5f5f5;
}

.swiper {
    width: 100%;
    position: relative;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
}

.swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.swiper-slide.active {
    position: relative;
    opacity: 1;
}

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

/* Slider Navigation Buttons */
.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s;
}

.swiper-btn:hover {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.5);
}

.swiper-btn.prev {
    left: 20px;
}

.swiper-btn.next {
    right: 20px;
}

/* Slider Pagination Dots */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.4s;
}

.dot.active {
    background: #5cb531;
    border-color: #5cb531;
}

/* ==================== About Section ==================== */
.about {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.about-decoration {
    display: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 65% 32%;
    gap: 3%;
    align-items: flex-start;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 30px;
    white-space: nowrap;
}

.about-text p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 15px;
    text-align: justify;
}

.btn-outline-green {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #5cb531;
    color: #5cb531;
    font-size: 14px;
    margin-top: 25px;
    transition: all 0.3s;
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline-green:hover {
    background: #5cb531;
    color: #fff;
}

.about-video {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.video-wrapper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.play-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.play-icon svg {
    color: #5cb531;
    margin-left: 4px;
}

.video-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #5cb531;
    color: #fff;
    padding: 10px 25px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.video-label::before {
    content: "▶";
    font-size: 10px;
}

/* ==================== Programs Section ==================== */
.programs {
    background: #1a1a2e;
    padding: 70px 0 80px;
}

.programs-header {
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.programs-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #fff;
    font-weight: 600;
}

.btn-view-all {
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    transition: all 0.3s;
    background: transparent;
    border-radius: 4px;
    font-weight: 500;
}

.btn-view-all:hover {
    border-color: #fff;
    color: #fff;
}

.programs-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.program-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s;
    min-height: 220px;
}

.program-card:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
}

.program-info {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-info p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
}

.program-btns {
    display: flex;
    gap: 15px;
}

.btn-green {
    padding: 10px 25px;
    background: #5cb531;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s;
    border: none;
    border-radius: 4px;
    font-weight: 500;
}

.btn-green:hover {
    background: #4a9628;
}

.btn-outline-white {
    padding: 10px 25px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: all 0.3s;
    background: transparent;
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline-white:hover {
    border-color: #fff;
    color: #fff;
}

.program-image {
    width: 260px;
    flex-shrink: 0;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Philosophy Section ==================== */
.philosophy {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9fafb 0%, #fff 100%);
}

.philosophy-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.philosophy-card {
    background: #fff;
    padding: 40px 25px;
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.4s;
}

.philosophy-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    border-color: transparent;
}

.philosophy-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.philosophy-icon.green {
    background: #e8f5e9;
    color: #5cb531;
}

.philosophy-icon.orange {
    background: #fff3e0;
    color: #ff9800;
}

.philosophy-icon.red {
    background: #ffebee;
    color: #e53935;
}

.philosophy-icon.gray {
    background: #f5f5f5;
    color: #607d8b;
}

.philosophy-card h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.philosophy-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

/* ==================== News Section ==================== */
.news {
    padding: 100px 0;
    background: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 45px;
}

.news-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #1a1a2e;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s;
}

.news-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border-color: transparent;
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 22px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-tag {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 500;
}

.news-tag.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.news-tag.green {
    background: #e8f5e9;
    color: #388e3c;
}

.news-date {
    font-size: 12px;
    color: #aaa;
}

.news-content h3 {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5cb531;
    font-size: 13px;
    transition: gap 0.3s;
    font-weight: 500;
}

.news-link:hover {
    gap: 12px;
}

/* ==================== CTA Section ==================== */
.cta {
    background: linear-gradient(135deg, #5cb531 0%, #4a9628 100%);
    padding: 80px 0;
}

.cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-text p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 480px;
}

.btn-white {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #5cb531;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #fff;
    border-radius: 4px;
}

.btn-white:hover {
    background: transparent;
    color: #fff;
}

.cta-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Footer ==================== */
.footer {
    background: #1a1a2e;
    padding-top: 60px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.3s;
}

.contact-item:hover {
    color: #5cb531;
}

.contact-icon {
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 22px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #5cb531;
}

.footer-bottom {
    margin-top: 50px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #5cb531;
}

/* ==================== Floating Sidebar ==================== */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
}

.sidebar-item {
    width: 50px;
    height: 50px;
    background: #5cb531;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: #4a9628;
}

.sidebar-item.back-top {
    background: #fff;
    color: #333;
    border-top: 1px solid #eee;
}

.sidebar-item.back-top:hover {
    background: #f5f5f5;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .swiper-btn {
        width: 40px;
        height: 40px;
    }
    
    .swiper-btn.prev {
        left: 10px;
    }
    
    .swiper-btn.next {
        right: 10px;
    }
    
    .program-card {
        flex-direction: column-reverse;
    }
    
    .program-image {
        width: 100%;
        height: 200px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-title {
        font-size: 26px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text p {
        max-width: 100%;
    }
    
    .cta-text h2 {
        font-size: 32px;
    }
    
    .cta-image {
        order: -1;
        width: 200px;
        height: 200px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-title,
    .news-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 60px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .about,
    .philosophy,
    .news {
        padding: 60px 0;
    }
    
    .programs {
        padding: 50px 0;
    }
    
    .cta {
        padding: 50px 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
