/* Food Safe Level 1 Course Page Styles - RupIELTS Theme */

/* Main Layout */
.foodsafe-main {
    min-height: 100vh;
    background: inherit;
    position: relative;
}

/* Animated Background - Food Theme */
.foodsafe-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(182, 255, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(255, 250, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(182, 215, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.foodsafe-hero {
    background: 
        linear-gradient(135deg, rgba(182, 255, 182, 0.3) 0%, rgba(255, 250, 182, 0.3) 50%, rgba(182, 215, 255, 0.3) 100%),
        radial-gradient(ellipse at top right, rgba(50, 205, 50, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    padding: 80px 20px 100px;
    position: relative;
    overflow: hidden;
}

/* Hero Pattern Animation */
.foodsafe-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(50, 205, 50, 0.03) 40px, rgba(50, 205, 50, 0.03) 80px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255, 215, 0, 0.03) 40px, rgba(255, 215, 0, 0.03) 80px);
    animation: heroPattern 25s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.foodsafe-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.foodsafe-hero-content {
    position: relative;
}

/* Badge with Animation */
.foodsafe-badge-container {
    display: inline-block;
    margin-bottom: 30px;
    position: relative;
}

.foodsafe-badge {
    width: 120px;
    height: 120px;
    background: 
        radial-gradient(circle at 30% 30%, #32CD32, #228B22),
        linear-gradient(135deg, #32CD32, #228B22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(50, 205, 50, 0.3),
        inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite, pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 
            0 15px 40px rgba(50, 205, 50, 0.3),
            0 0 60px rgba(50, 205, 50, 0.2),
            inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(50, 205, 50, 0.5),
            0 0 80px rgba(50, 205, 50, 0.4),
            inset 0 -5px 10px rgba(0, 0, 0, 0.1);
    }
}

.foodsafe-icon {
    font-size: 60px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: rotate 8s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Title Styles */
.foodsafe-title {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #228B22, #32CD32, #3CB371, #228B22);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    line-height: 1.2;
    animation: gradientSlide 6s ease infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.foodsafe-subtitle {
    font-size: 1.3rem;
    color: var(--dark-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Hero Stats */
.foodsafe-hero-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.foodsafe-stat {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    min-width: 150px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.foodsafe-stat:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #32CD32;
    box-shadow: 
        0 15px 40px rgba(50, 205, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.foodsafe-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #228B22, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.foodsafe-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Hero Image Placeholder */
.foodsafe-hero-image {
    position: relative;
}

.foodsafe-hero-placeholder {
    width: 100%;
    height: 400px;
    background: 
        linear-gradient(135deg, rgba(50, 205, 50, 0.2) 0%, rgba(255, 215, 0, 0.15) 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #32CD32;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(50, 205, 50, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 60% 40% 60% 40%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 40% 60% 40% 60%;
    }
}

.foodsafe-hero-placeholder::before {
    content: 'ðŸ¥—';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    animation: float 5s ease-in-out infinite;
}

/* Decorative Food Icons */
.foodsafe-food-icon {
    position: absolute;
    font-size: 60px;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
}

.foodsafe-food-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.foodsafe-food-2 {
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.foodsafe-food-3 {
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

/* Container */
.foodsafe-container {
    max-width: 1200px;
    margin: -50px auto 0;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
}

.foodsafe-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* Content Area */
.foodsafe-content {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.foodsafe-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(50, 205, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.foodsafe-section {
    margin-bottom: 70px;
    position: relative;
}

.foodsafe-section-title {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
}

.foodsafe-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #32CD32, #228B22);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(50, 205, 50, 0.3);
}

/* Quick Info Cards */
.foodsafe-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.foodsafe-info-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%),
        linear-gradient(135deg, rgba(50, 205, 50, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 35px 30px;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.foodsafe-info-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(50, 205, 50, 0.2),
        inset 0 0 0 2px #32CD32;
    border-color: #32CD32;
}

.foodsafe-info-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    animation: wiggle 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.foodsafe-info-card:nth-child(1) .foodsafe-info-icon { --delay: 0s; }
.foodsafe-info-card:nth-child(2) .foodsafe-info-icon { --delay: 0.2s; }
.foodsafe-info-card:nth-child(3) .foodsafe-info-icon { --delay: 0.4s; }

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.foodsafe-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Image Placeholders */
.foodsafe-image-placeholder {
    background: 
        linear-gradient(135deg, rgba(50, 205, 50, 0.2) 0%, rgba(255, 215, 0, 0.15) 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #32CD32;
    font-weight: 600;
    margin: 35px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(50, 205, 50, 0.15),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.foodsafe-image-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(50, 205, 50, 0.25),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

.foodsafe-image-placeholder::before {
    content: 'ðŸ“¸';
    position: absolute;
    font-size: 50px;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

.foodsafe-circular {
    width: 280px;
    height: 280px;
    border-radius: 50%;
}

.foodsafe-rounded {
    width: 350px;
    height: 250px;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
}

.foodsafe-organic {
    width: 300px;
    height: 220px;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* Learning Topics Grid */
.foodsafe-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.foodsafe-topic-item {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid transparent;
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, #32CD32, #228B22);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.foodsafe-topic-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.15);
}

.foodsafe-topic-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.foodsafe-topic-item:nth-child(1) .foodsafe-topic-icon { --delay: 0s; }
.foodsafe-topic-item:nth-child(2) .foodsafe-topic-icon { --delay: 0.1s; }
.foodsafe-topic-item:nth-child(3) .foodsafe-topic-icon { --delay: 0.2s; }
.foodsafe-topic-item:nth-child(4) .foodsafe-topic-icon { --delay: 0.3s; }
.foodsafe-topic-item:nth-child(5) .foodsafe-topic-icon { --delay: 0.4s; }
.foodsafe-topic-item:nth-child(6) .foodsafe-topic-icon { --delay: 0.5s; }

.foodsafe-topic-item h4 {
    background: linear-gradient(45deg, #228B22, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Course Benefits */
.foodsafe-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.foodsafe-benefit {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 25px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%),
        linear-gradient(135deg, rgba(50, 205, 50, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.foodsafe-benefit:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 
        15px 0 30px rgba(50, 205, 50, 0.15),
        inset 0 0 0 2px rgba(50, 205, 50, 0.2);
}

.foodsafe-benefit-icon {
    font-size: 42px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #228B22, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 5px rgba(50, 205, 50, 0.2));
}

.foodsafe-benefit-content h4 {
    margin-bottom: 10px;
    color: #228B22;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Who Should Take Grid */
.foodsafe-who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.foodsafe-who-item {
    text-align: center;
    padding: 30px 25px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.foodsafe-who-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(50, 205, 50, 0.2),
        inset 0 0 0 2px #32CD32;
}

.foodsafe-who-item h4 {
    margin: 20px 0 12px;
    color: #228B22;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Schedule Cards */
.foodsafe-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.foodsafe-schedule-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.foodsafe-schedule-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(50, 205, 50, 0.2);
}

.foodsafe-schedule-header {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foodsafe-schedule-day {
    font-size: 1.3rem;
    font-weight: 700;
}

.foodsafe-schedule-type {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.foodsafe-schedule-times {
    padding: 30px;
}

.foodsafe-schedule-times p {
    margin-bottom: 12px;
    font-size: 1.1rem;
    padding: 10px 15px;
    background: rgba(50, 205, 50, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.foodsafe-schedule-times p:hover {
    background: rgba(50, 205, 50, 0.15);
    transform: translateX(5px);
}

/* Upcoming Dates Section */
.foodsafe-upcoming-dates {
    background: 
        linear-gradient(135deg, rgba(50, 205, 50, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%);
    padding: 30px;
    border-radius: 20px;
    margin-top: 35px;
    border: 2px dashed #32CD32;
}

.foodsafe-upcoming-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #228B22;
    font-weight: 600;
}

.foodsafe-dates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.foodsafe-date-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.foodsafe-date-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(50, 205, 50, 0.15);
}

.foodsafe-date-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.foodsafe-date-day {
    font-size: 1.1rem;
    font-weight: 600;
    color: #228B22;
}

.foodsafe-date-time {
    font-size: 0.95rem;
    color: #666;
}

.foodsafe-date-status {
    background: #32CD32;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.foodsafe-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Practice Test Section */
.foodsafe-test-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 25px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.foodsafe-test-header {
    text-align: center;
    margin-bottom: 40px;
}

.foodsafe-test-title {
    font-size: 2rem;
    color: #228B22;
    margin-bottom: 15px;
    font-weight: 700;
}

.foodsafe-test-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.foodsafe-test-stat {
    background: rgba(50, 205, 50, 0.1);
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 600;
}

.foodsafe-questions {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.foodsafe-question {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.foodsafe-question:hover {
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.15);
}

.foodsafe-question-number {
    display: inline-block;
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.foodsafe-question-text {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
}

.foodsafe-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foodsafe-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.foodsafe-option:hover {
    background: rgba(50, 205, 50, 0.08);
    border-color: #32CD32;
    transform: translateX(5px);
}

.foodsafe-option input[type="radio"] {
    margin-right: 12px;
}

.foodsafe-answer {
    margin-top: 20px;
    padding: 20px;
    background: rgba(50, 205, 50, 0.1);
    border-radius: 15px;
    border-left: 5px solid #32CD32;
    display: none;
}

.foodsafe-answer.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.foodsafe-correct {
    color: #228B22;
    font-weight: 600;
}

.foodsafe-test-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.foodsafe-test-btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.foodsafe-test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.3);
}

.foodsafe-score {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-radius: 20px;
    margin-top: 30px;
    display: none;
}

.foodsafe-score.show {
    display: block;
}

.foodsafe-score-text {
    font-size: 1.5rem;
    color: #228B22;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Testimonials */
.foodsafe-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 35px;
}

.foodsafe-testimonial {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.foodsafe-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(50, 205, 50, 0.15);
    border-color: rgba(50, 205, 50, 0.3);
}

.foodsafe-testimonial::before {
    content: '"';
    font-size: 100px;
    color: rgba(50, 205, 50, 0.15);
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: Georgia, serif;
    line-height: 1;
}

.foodsafe-stars {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.foodsafe-testimonial p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

.foodsafe-testimonial cite {
    display: block;
    text-align: right;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* CTA Section */
.foodsafe-cta-section {
    margin-top: 80px;
}

.foodsafe-cta-card {
    background: 
        linear-gradient(135deg, #32CD32 0%, #228B22 50%, #3CB371 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(50, 205, 50, 0.3),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.foodsafe-cta-card::before,
.foodsafe-cta-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.foodsafe-cta-card::before {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
}

.foodsafe-cta-card::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.foodsafe-cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.foodsafe-cta-card p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.foodsafe-cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.foodsafe-cta-btn {
    padding: 18px 45px;
    border-radius: 35px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.foodsafe-cta-primary {
    background: white;
    color: #228B22;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.foodsafe-cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.foodsafe-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 3px solid white;
    backdrop-filter: blur(10px);
}

.foodsafe-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
}

/* FAQ Section */
.foodsafe-faqs {
    display: grid;
    gap: 25px;
    margin-top: 35px;
}

.foodsafe-faq {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #32CD32;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.foodsafe-faq:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.15);
}

.foodsafe-faq h4 {
    color: #228B22;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Sidebar Styles */
.foodsafe-sidebar {
    position: sticky;
    /* Adjusted top value to ensure it sticks below the hero section */
    /* This value might need minor fine-tuning based on your specific layout and header */
    top: 650px; 
    z-index: 10; /* Ensure sidebar is above other content when sticky */
}

.foodsafe-contact-card,
.foodsafe-location-card {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.foodsafe-contact-card:hover,
.foodsafe-location-card:hover {
    border-color: #32CD32;
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(50, 205, 50, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.foodsafe-contact-card h3,
.foodsafe-location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.foodsafe-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.foodsafe-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-text);
    text-decoration: none;
    padding: 15px 20px;
    background: 
        linear-gradient(135deg, rgba(50, 205, 50, 0.08) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.foodsafe-contact-item:hover {
    transform: translateX(8px);
    color: #228B22;
}

.foodsafe-contact-icon {
    font-size: 1.4rem;
}

.foodsafe-sidebar-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    padding: 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.3);
    font-size: 1.1rem;
}

.foodsafe-sidebar-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(50, 205, 50, 0.4);
}

.foodsafe-location-card address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.foodsafe-map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #228B22;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.foodsafe-map-link:hover {
    color: #32CD32;
    transform: translateX(5px);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive Design */
@media (max-width: 968px) {
    .foodsafe-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .foodsafe-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .foodsafe-sidebar {
        position: static; /* Sidebar becomes static on smaller screens */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        top: auto; /* Reset top on static position */
        z-index: auto; /* Reset z-index on static position */
    }
    
    .foodsafe-content {
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .foodsafe-title {
        font-size: 2.2rem;
    }
    
    .foodsafe-subtitle {
        font-size: 1.1rem;
    }
    
    .foodsafe-hero {
        padding: 50px 20px 70px;
    }
    
    .foodsafe-content {
        padding: 30px 20px;
    }
    
    .foodsafe-section-title {
        font-size: 1.8rem;
    }
    
    .foodsafe-hero-stats {
        gap: 15px;
    }
    
    .foodsafe-stat {
        padding: 15px 20px;
        min-width: 120px;
    }
    
    .foodsafe-stat-number {
        font-size: 1.6rem;
    }
    
    .foodsafe-badge {
        width: 100px;
        height: 100px;
    }
    
    .foodsafe-icon {
        font-size: 50px;
    }
    
    .foodsafe-topics-grid,
    .foodsafe-who-grid {
        grid-template-columns: 1fr;
    }
    
    .foodsafe-food-icon {
        display: none;
    }
    
    .foodsafe-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .foodsafe-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .foodsafe-test-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .foodsafe-sidebar,
    .foodsafe-cta-section,
    .foodsafe-food-icon {
        display: none;
    }
    
    .foodsafe-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .foodsafe-hero {
        background: none;
        padding: 20px 0;
    }
    
    .foodsafe-content {
        box-shadow: none;
        background: white;
    }
    
    .foodsafe-badge,
    .foodsafe-info-icon,
    .foodsafe-topic-icon {
        animation: none;
    }
}

/* code for questions */
/* Ensure practice test section is visible */
.foodsafe-test-section {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 25px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it's visible */
}

/* Make sure questions are visible */
.foodsafe-questions {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px; /* Add some spacing */
}

.foodsafe-question {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block; /* Ensure visibility */
}

/* Ensure options are visible */
.foodsafe-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px; /* Add spacing */
}

.foodsafe-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block; /* Ensure visibility */
}

/* Fix radio button styling */
.foodsafe-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

/* Ensure answers are hidden by default but can be shown */
.foodsafe-answer {
    margin-top: 20px;
    padding: 20px;
    background: rgba(50, 205, 50, 0.1);
    border-radius: 15px;
    border-left: 5px solid #32CD32;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foodsafe-answer.show {
    display: block;
    opacity: 1;
}

/* Ensure test controls are visible */
.foodsafe-test-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Score section styling */
.foodsafe-score {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-radius: 20px;
    margin-top: 30px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.foodsafe-score.show {
    display: block;
    opacity: 1;
}

/* Add pass/fail styling */
.foodsafe-score.pass {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2) 0%, rgba(50, 205, 50, 0.1) 100%);
    border: 2px solid #32CD32;
}

.foodsafe-score.fail {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 100, 100, 0.1) 100%);
    border: 2px solid #ff6464;
}

/* Mobile responsive for test section */
@media (max-width: 768px) {
    .foodsafe-test-section {
        padding: 25px 20px;
    }
    
    .foodsafe-question {
        padding: 20px;
    }
    
    .foodsafe-option {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}
<!-- Add this CSS to your foodsafe.css file -->

/* COMPACT QUIZ DESIGN */

/* Quiz Container */
.foodsafe-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.foodsafe-progress-bar {
    height: 6px;
    background: rgba(50, 205, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.foodsafe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #32CD32, #228B22);
    width: 0%;
    transition: width 0.5s ease;
    position: relative;
}

.foodsafe-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.foodsafe-progress-text {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.85rem;
    color: #666;
    background: white;
    padding: 5px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Quiz Content */
.foodsafe-quiz-content {
    padding: 50px;
    min-height: 400px;
}

/* Quiz Screens */
.foodsafe-quiz-screen {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Start Screen */
.foodsafe-quiz-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 30px;
    animation: bounce 2s ease-in-out infinite;
}

.foodsafe-quiz-screen h3 {
    font-size: 1.8rem;
    color: #228B22;
    text-align: center;
    margin-bottom: 20px;
}

.foodsafe-quiz-screen p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Quiz Buttons */
.foodsafe-quiz-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
    text-align: center;
}

.foodsafe-quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.foodsafe-quiz-btn-primary {
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    box-shadow: 0 5px 20px rgba(50, 205, 50, 0.3);
}

.foodsafe-quiz-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4);
}

.foodsafe-quiz-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.foodsafe-quiz-btn-secondary:hover {
    background: #e0e0e0;
}

.foodsafe-quiz-btn-success {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

/* Question Screen */
.foodsafe-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.foodsafe-question-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #228B22;
}

.foodsafe-question-score {
    font-size: 0.95rem;
    color: #666;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
}

.foodsafe-question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

/* Quiz Options */
.foodsafe-quiz-options {
    margin-bottom: 40px;
}

.foodsafe-quiz-option {
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.foodsafe-quiz-option:hover {
    background: rgba(50, 205, 50, 0.05);
    border-color: #32CD32;
    transform: translateX(5px);
}

.foodsafe-quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.foodsafe-quiz-option label {
    display: block;
    cursor: pointer;
    padding-left: 35px;
    position: relative;
    line-height: 1.5;
}

.foodsafe-quiz-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.foodsafe-quiz-option input[type="radio"]:checked + label::before {
    border-color: #32CD32;
    background: #32CD32;
}

.foodsafe-quiz-option input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Navigation */
.foodsafe-quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

/* Results Screen */
.foodsafe-quiz-score {
    text-align: center;
    margin: 30px 0;
}

.foodsafe-score-number {
    font-size: 3rem;
    font-weight: 800;
    color: #228B22;
    margin-bottom: 10px;
}

.foodsafe-score-percentage {
    font-size: 2rem;
    color: #666;
}

.foodsafe-quiz-feedback {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.foodsafe-quiz-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Review Screen */
.foodsafe-quiz-review {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 30px;
}

.foodsafe-review-item {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #ddd;
}

.foodsafe-review-item.correct {
    border-left-color: #32CD32;
}

.foodsafe-review-item.incorrect {
    border-left-color: #FF6B6B;
}

.foodsafe-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.foodsafe-review-number {
    font-weight: 600;
    color: #333;
}

.foodsafe-review-status {
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.foodsafe-review-item.correct .foodsafe-review-status {
    background: rgba(50, 205, 50, 0.1);
    color: #32CD32;
}

.foodsafe-review-item.incorrect .foodsafe-review-status {
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.foodsafe-review-question {
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.foodsafe-review-answer {
    margin-bottom: 15px;
    color: #666;
}

.foodsafe-correct-answer {
    color: #32CD32;
    font-weight: 500;
    margin-top: 8px;
}

.foodsafe-review-explanation {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .foodsafe-quiz-content {
        padding: 30px 20px;
    }
    
    .foodsafe-question-text {
        font-size: 1.1rem;
    }
    
    .foodsafe-quiz-navigation {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .foodsafe-quiz-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .foodsafe-quiz-icon {
        font-size: 60px;
    }
    
    .foodsafe-quiz-option label {
        padding-left: 30px;
        font-size: 0.95rem;
    }
    
    .foodsafe-progress-text {
        display: none;
    }
    
    .foodsafe-quiz-review {
        max-height: 400px;
    }
    
    .foodsafe-score-number {
        font-size: 2.5rem;
    }
    
    .foodsafe-score-percentage {
        font-size: 1.8rem;
    }
}

/* Hide old quiz styles if they exist */
.foodsafe-questions,
.foodsafe-question:not(.foodsafe-question-text),
.foodsafe-options:not(.foodsafe-quiz-options),
.foodsafe-option:not(.foodsafe-quiz-option),
.foodsafe-answer,
.foodsafe-test-controls {
    display: none !important;
}
