/* Custom Styles for British Institutes Milano */

:root {
    --primary-color: #262c60;
    --secondary-color: #1e2350;
    --accent-color: #3a4080;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --icon-color: #951a1a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    min-height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Background */
.video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.video-background iframe {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) !important;
    border: 0 !important;
    pointer-events: none !important;
}

/* Force video to be larger to ensure coverage */
@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        height: 100vh !important;
        width: 177.77vh !important;
    }
}

@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 100vw !important;
        height: 56.25vw !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 80px 0;
    z-index: 1;
    background: rgba(38, 44, 96, 0.7);
    display: flex;
    align-items: center;
}

.min-vh-75 {
    min-height: 50vh;
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-icon-sm {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.hover-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 60px;
    color: white;
    margin-bottom: 0;
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(38, 44, 96, 0.3);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

/* Footer */
footer {
    margin-top: 80px;
}

footer a:hover {
    color: white !important;
    transition: color 0.3s ease;
}

/* Contact Info Cards */
.contact-info-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

/* List Styling */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.custom-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    position: relative;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
} 