/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a18;
    background-color: #fecc00;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - same as main page */
.header {
    background-color: #626262;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo a {
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #fecc00;
}

.nav-divider {
    color: rgba(255,255,255,0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #fecc00;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #1a1a18;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    display: flex;
    max-height: 400px;
    padding: 1rem 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover {
    background-color: #fecc00;
    color: #1a1a18;
}

/* Hero Section */
.hero-functions {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-functions h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #1a1a18;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #1a1a18;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
}

/* Function Categories */
.function-category {
    padding: 60px 0;
}

.function-category.alt {
    background-color: rgba(255, 255, 255, 0.1);
}

.function-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.function-row.reverse {
    direction: rtl;
}

.function-row.reverse > * {
    direction: ltr;
}

/* Function Media (Image + Video Placeholder) */
.function-media {
		max-width: 400px;

    position: relative;
}

.function-mediaB {
		max-width: 650px;

    position: relative;
}

.function-mediaC {
		max-width: 350px;

    position: relative;
}

.function-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: block;
    margin-bottom: 1.5rem;
}

.video-placeholder {
    background: linear-gradient(135deg, #333 0%, #1a1a18 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px dashed rgba(254, 204, 0, 0.3);
}

.video-icon {
    font-size: 3rem;
    color: #fecc00;
    margin-bottom: 0.5rem;
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Function Content */
.function-content {
    background-color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-badge {
    display: inline-block;
    background-color: #fecc00;
    color: #1a1a18;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.function-content h2 {
    font-size: 2.2rem;
    color: #1a1a18;
    margin-bottom: 1rem;
    font-weight: bold;
}

.function-content .intro {
    font-size: 1.15rem;
    color: #626262;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.function-list {
    list-style: none;
    padding: 0;
}

.function-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a18;
}

.function-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fecc00;
    font-weight: bold;
    font-size: 1.2rem;
}

.function-list li strong {
    color: #1a1a18;
    font-weight: 600;
}

/* CTA Section */
.cta-functions {
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    background-color: white;
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #1a1a18;
    margin-bottom: 1rem;
    font-weight: bold;
}

.cta-content p {
    font-size: 1.2rem;
    color: #1a1a18;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #1a1a18;
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,26,24,0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #1a1a18;
    border: 2px solid #1a1a18;
}

.btn-secondary:hover {
    background-color: #1a1a18;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,26,24,0.3);
}

/* Footer */
.footer {
    background-color: #626262;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    color: white;
    opacity: 0.9;
    font-size: 0.95rem;
    margin: 0;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fecc00;
}

.footer-text p {
    color: white;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .hero-functions h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .function-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .function-row.reverse {
        direction: ltr;
    }
    
    .function-content {
        padding: 2rem;
    }
    
    .function-content h2 {
        font-size: 1.8rem;
    }
    
    .video-placeholder {
        padding: 2rem 1.5rem;
    }
    
    .video-icon {
        font-size: 2.5rem;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .logo img {
        max-height: 50px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-functions {
        padding: 50px 0 40px;
    }
    
    .function-category {
        padding: 40px 0;
    }
    
    .function-content {
        padding: 1.5rem;
    }
    
    .function-content h2 {
        font-size: 1.5rem;
    }
    
    .function-list li {
        font-size: 0.95rem;
    }
    
    .logo img {
        max-height: 35px;
        max-width: 150px;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.function-content {
    animation: fadeInUp 0.6s ease-out;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@media (min-width: 769px) {
    .function-mediaB {
        position: sticky;
        top: 120px;
        align-self: flex-start;
    }
}

/* Donkey Character Design Elements */
.donkey-character {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.donkey-hero-side {
    width: 150px;
    height: auto;
    top: 20%;
    right: 3%;
    transform: rotate(10deg);
    opacity: 0.8;
}
	
.donkey-hero-sideB {
    width: 250px;
    height: auto;
    top: 60%;
    right: 75%;
    transform: rotate(-10deg);
    opacity: 0.8;
}	

.donkey-hero-sideC {
    width: 100px;
    height: auto;
    top: 45%;
    right: 15%;
    transform: rotate(-10deg);
    opacity: 0.8;
}	