/* Newcastle Driving School - Custom Styles */

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0A3A2A 0%, #4F9D69 100%);
}

/* Package Cards */
.package-card {
    transition: all 0.3s ease-in-out;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
}

/* Animated Icons for Hero Background */
.animated-icon {
    position: absolute;
    color: white;
    opacity: 0.1;
    z-index: 1;
    animation: move-across linear infinite;
}

@keyframes move-across {
    0% {
        transform: translateX(-200px) rotate(0deg);
    }
    100% {
        transform: translateX(105vw) rotate(360deg);
    }
}

/* Hero Slider Pagination */
.hero-slider .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: #B8860B;
    transform: scale(1.3);
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Student Gallery Swiper */
.student-gallery-swiper .swiper-slide {
    height: 250px;
    cursor: pointer;
    overflow: hidden;
}

.student-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.student-gallery-swiper .swiper-slide:hover img {
    transform: scale(1.08);
}

/* Lightbox */
#lightbox {
    display: none;
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    color: #B8860B;
    opacity: 0.08;
    z-index: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Styles */
.form-input:focus {
    outline: none;
    border-color: #0A3A2A;
    box-shadow: 0 0 0 3px rgba(10, 58, 42, 0.1);
}

/* Button Hover Effects */
.btn-primary {
    background-color: #0A3A2A;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #083329;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 58, 42, 0.3);
}

.btn-secondary {
    background-color: #B8860B;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #a07609;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0A3A2A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #083329;
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        display: none !important;
    }
    
    .package-card {
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0A3A2A;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: #000;
        color: #fff;
    }
    
    .package-card {
        border: 2px solid #000;
    }
}

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

