/* Base styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #ff6b00;
}

a:hover {
    color: #e65c00;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b00;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav a {
    color: #555;
    font-weight: bold;
}

nav a.active, nav a:hover {
    color: #ff6b00;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65c00;
    color: white;
}

/* Sections */
section {
    padding: 4rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Fruit Grid */
.fruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.fruit-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.fruit-card:hover {
    transform: translateY(-5px);
}

.fruit-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fruit-card h3 {
    padding: 1rem 1rem 0.5rem;
    color: #333;
}

.fruit-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

.fruit-card a {
    display: block;
    text-align: center;
    background: #f8f8f8;
    padding: 0.7rem;
    font-weight: bold;
}

/* Fruit Detail Page */
.fruit-detail {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.fruit-image img {
    width: 100%;
    border-radius: 10px;
}

.fruit-info h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.fruit-info .tagline {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.fruit-info h2 {
    color: #ff6b00;
    margin: 1.5rem 0 0.5rem;
}

.nutrition, .benefits {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Benefits Page */
.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.benefit-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.benefit-item h2 {
    color: #ff6b00;
    margin-bottom: 1rem;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
}

.about-text h2 {
    color: #ff6b00;
    margin: 1.5rem 0 0.5rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .fruit-detail {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
