/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Custom Bootstrap overrides */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #0066cc !important;
}

/* Active nav link */
.navbar-nav .nav-link.active {
    color: #0066cc !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    background: #0066cc;
    border-radius: 2px;
}

/* Dashboard link - istaknut sa ikonom i posebnim stilom */
.nav-link.dashboard-nav-link {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.nav-link.dashboard-nav-link:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.nav-link.dashboard-nav-link i {
    font-size: 1.1em;
}

/* Mobilna verzija Dashboard linka (samo ikona) */
.dashboard-nav-link-mobile {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
    text-decoration: none;
    min-width: 42px;
    height: 42px;
}

.dashboard-nav-link-mobile:hover {
    background: linear-gradient(135deg, #0052a3 0%, #004080 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.dashboard-nav-link-mobile i {
    font-size: 1.2em;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0066cc;
}

/* Hero Section */
.hero {
    background: url('../images/pk-usce-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0 60px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    top: 120px;
    min-height: 40vh;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.2) 100%);
}

.hero .hero-content h1,
.hero .hero-content p {
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

/* Intro Section (headline below hero image) */
.intro h1 {
    color: #1b1f23;
}

.intro .btn.btn-outline {
    border-color: #0066cc;
    color: #0066cc;
}

.intro .btn.btn-outline:hover {
    background: #0066cc;
    color: #fff;
}

/* Custom Bootstrap button styles */
.btn-outline-light:hover {
    background-color: white;
    color: #0066cc;
    border-color: white;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-primary:hover {
    background: #004499;
    border-color: #004499;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
}

.btn-outline {
    background: transparent;
    color: #0066cc;
    border-color: #0066cc;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* Scroll offset so content doesn't hide under navbar */
section[id] {
    scroll-margin-top: 120px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* About Section */
#about {
    background: #f8f9fa;
    padding: 80px 0;
}

.about-content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-details {
    border-top: 2px solid #e9ecef;
    padding-top: 40px;
}

.about-card {
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-icon {
    transition: transform 0.3s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h4 {
    color: #333;
    font-size: 1.15rem;
}

.about-card p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.mission-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #0066cc;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.15);
    position: relative;
    overflow: hidden;
    padding: 40px 30px;
    margin: 30px 0;
    transition: transform 0.3s ease;
}

.mission-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.mission-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #004499);
}

.mission-box h4 {
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.mission-box p {
    color: #333;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Collapse animation for About section */
.collapse.show {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button with icon animation */
.btn[data-bs-toggle="collapse"] .fas {
    transition: transform 0.3s ease;
}

.btn[data-bs-toggle="collapse"][aria-expanded="true"] .fas.fa-chevron-down {
    transform: rotate(180deg);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Course Section */
.course {
    background: #f8f9fa;
    text-align: center;
}

.course-content h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
}

.course-subtitle {
    font-size: 1.2rem;
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 20px;
}

.course-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.course-description {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Trainers Section */
.trainers {
    background: #f8f9fa;
}

/* News Section */
#news {
    background: white;
}

.news-rotating-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-text {
    flex: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.news-card .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
}

/* Trainers Rotating Grid Styles */
.trainers-rotating-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.trainers-rotating-grid .trainer-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trainers-rotating-grid .trainer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trainers-rotating-grid .trainer-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.trainers-rotating-grid .trainer-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #0066cc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.trainers-rotating-grid .trainer-card:hover .trainer-img {
    transform: scale(1.05);
}

.trainers-rotating-grid .trainer-card h4 {
    color: #0066cc;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 20px;
}

/* Fade-in animation for rotating trainers */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* Pause rotation on hover */
.trainers-rotating-grid:hover ~ * {
    animation-play-state: paused;
}

.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trainer-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.trainer-card:hover {
    transform: translateY(-5px);
}

.trainer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-card h4 {
    font-size: 1.2rem;
    color: #333;
}

/* Kids cheerful features */
.kids-features .kids-feature {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kids-features .kids-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.kids-features .kids-icon {
    font-size: 1.8rem;
}

.kids-features .kids-text {
    font-weight: 600;
    color: #333;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.news-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    background: #0066cc;
    color: white;
    padding: 20px;
    text-align: center;
    min-width: 100px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.news-date .month {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
}

.news-date .year {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.news-content {
    padding: 30px;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.news-category {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 15px;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contact Section */
#contact {
    background: white;
    padding: 80px 0;
}

.contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.contact-info-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item:hover {
    padding-left: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 20px;
    padding-right: 10px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-icon i {
    color: white;
    font-size: 1.1rem;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.contact-info-value a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-value a:hover {
    color: #004499;
    text-decoration: underline;
}

.contact-form-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #0066cc;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.footer-section ul li i {
    margin-right: 8px;
    color: #0066cc;
    width: 16px;
    text-align: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: #004499;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 30px 0 12px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-section ul li {
        margin-bottom: 6px;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 12px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-menu a.active {
        color: #0066cc;
        font-weight: 600;
    }

    .hero {
        text-align: center;
        padding: 60px 0 40px;
        min-height: 30vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .about-content {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .trainers-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        min-width: auto;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0 30px;
        min-height: 25vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .trainer-card {
        padding: 20px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        min-width: auto;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Footer za manje ekrane */
    .footer {
        padding: 25px 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .footer-section ul li {
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    
    .social-links {
        margin-top: 12px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 10px;
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.gallery-item,
.trainer-card,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Compact header on scroll */
body.compact-header .header .bg-primary {
    display: none;
}
body.compact-header .navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}
body.compact-header .navbar-brand span {
    font-size: 1.25rem !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0066cc;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.back-to-top.show {
    display: inline-flex;
}

/* Responsive styles for About section */
@media (max-width: 768px) {
    .about-content-wrapper {
        padding: 30px 20px;
    }
    
    .about-intro .lead {
        font-size: 1.1rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .about-card {
        margin-bottom: 15px;
    }
    
    .mission-box {
        margin: 20px 0;
        padding: 25px 20px;
    }
    
    .mission-box h4 {
        font-size: 1.2rem;
    }
    
    .mission-box p {
        font-size: 1rem;
    }
    
    .about-details {
        padding-top: 30px;
    }
    
    #about {
        padding: 60px 0;
    }
}

/* Responsive styles for Contact section */
@media (max-width: 768px) {
    #contact {
        padding: 60px 0;
    }
    
    .contact-info-item {
        padding: 12px 0;
    }
    
    .contact-info-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .contact-info-value {
        font-size: 1rem;
    }
    
    .contact-info-label {
        font-size: 0.8rem;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* School swimming styles */
.location-group {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.location-group h5 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.location-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-group li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.location-group li:last-child {
    border-bottom: none;
}

.course-features {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.course-features p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Benefits styles */
.benefits-list {
    margin: 30px 0;
}

.benefit-item {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.benefit-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefit Cards with Icons - New Collapsible Style */
.benefit-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    border-color: #0066cc !important;
}

.benefit-card button {
    color: #333 !important;
    transition: color 0.3s ease;
    width: 100%;
}

.benefit-card button:hover {
    color: #0066cc !important;
}

.benefit-card button:focus {
    box-shadow: none;
    outline: none;
}

.benefit-card button:not(.collapsed) {
    color: #0066cc !important;
}

.benefit-card .fa {
    transition: transform 0.3s ease;
}

.benefit-card:hover .fa {
    transform: scale(1.1);
}

.benefit-card .collapse {
    transition: height 0.3s ease;
}
