/* ====================================
   Page Structure & Animation Styles
   Inspired by Haas Hall Academy Design
   Maintaining Danborough Theme Colors
   ==================================== */

:root {
    --primary-green: #09200c;
    --secondary-yellow: #e29609;
    --dark-green: #0f4a15;
    --light-green: #2d5a2d;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --accent-light: #f1f5f1;
    --border-color: #e0e8e0;
    --shadow-light: rgba(30, 136, 41, 0.1);
    --shadow-medium: rgba(30, 136, 41, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-yellow) 0%, #ffd633 100%);
}

/* Global Page Styles */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header/Hero Styles */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,204,0,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 20px;
    display: inline-flex;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb-item.active {
    color: var(--secondary-yellow);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    content: '→';
    color: var(--secondary-yellow);
    margin: 0 10px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section:nth-child(even) {
    background: var(--accent-light);
}

.content-section .row {
    align-items: center;
}

/* Card Styles */
.content-card {
    background: var(--text-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.content-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    background: var(--text-light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 20s linear infinite;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.feature-item h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Statistics Section */
.stats-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="50" height="43.4" patternUnits="userSpaceOnUse"><polygon points="25,0 43.3,12.5 43.3,31.2 25,43.4 6.7,31.2 6.7,12.5" fill="none" stroke="rgba(255,204,0,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: countUp 2s ease-out;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button Styles */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-medium);
    color: var(--text-light);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary-custom:hover {
    background: var(--primary-green);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

/* Image Styles */
.content-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.custom-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.custom-list li:hover {
    padding-left: 35px;
    color: var(--primary-green);
}

/* Quote/Testimonial Styles */
.quote-section {
    background: var(--accent-light);
    padding: 60px 40px;
    border-radius: 15px;
    margin: 50px 0;
    position: relative;
    text-align: center;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    color: var(--secondary-yellow);
    font-family: serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.quote-author {
    font-weight: 600;
    color: var(--primary-green);
}

/* Accordion Styles */
.custom-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.custom-accordion .accordion-button {
    background: var(--background-light);
    color: var(--primary-green);
    font-weight: 600;
    border: none;
    padding: 20px;
    position: relative;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.custom-accordion .accordion-body {
    padding: 20px;
    background: var(--text-light);
}

/* Navigation Styles */
.page-nav {
    background: var(--text-light);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.page-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-nav .nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.page-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-yellow);
    transition: width 0.3s ease;
}

.page-nav .nav-links a:hover,
.page-nav .nav-links a.active {
    color: var(--primary-green);
}

.page-nav .nav-links a:hover::after,
.page-nav .nav-links a.active::after {
    width: 80%;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}
