/* Base Styles */
:root {
    --primary-color: #4a89dc;
    --primary-light: #e6f0fd;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9fafc;
    --white: #ffffff;
    --gray-light: #eaeaea;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Free Delivery Banner Styles */
.delivery-banner {
    background-color: #f04034;
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(240, 64, 52, 0.2);
}

.delivery-icon {
    font-size: 1.3rem;
}

.delivery-text {
    font-size: 1.05rem;
}

.free-delivery-footer {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .delivery-banner {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
    
    .delivery-text {
        font-size: 0.95rem;
    }
}
/* Services Page Styles */
.services-section {
    padding: 2rem 0;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

.service-card.highlight {
    border-top-color: #f04034;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card.highlight h2 {
    color: #f04034;
}

.service-details {
    margin-top: 1.5rem;
}

.service-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.service-details ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.service-details li {
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-box {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-color);
}

.contact-box h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}
/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 150px; /* Match logo height */
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px; /* Slightly smaller than navbar for visual padding */
    width: auto;
    object-fit: contain;
}

/* Restore original link styling */
.nav-links {
    display: flex;
    gap: 3.0rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.2rem; /* Explicitly set font size */
    transition: color 0.3s;
    padding: 0.5rem 0; /* Add some vertical padding for better click area */
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 1rem 0; /* Restore padding for mobile */
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .logo img {
        height: 70px; /* Slightly smaller for mobile */
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0.5rem 0; /* Add some spacing around links */
    }
    
    .nav-links a {
        padding: 0.5rem; /* Better touch targets on mobile */
    }
}
/* Search */
.search-container {
    margin: 2rem 0;
}

#searchInput {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s;
}
.buy-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f04034;
    color: white;
    text-decoration: none;
    align-self: flex-start;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.buy-button:hover {
    background-color: #f04034;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
/* Filter container styles */
.filter-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
}

.search-container {
    flex-grow: 1;
}

.college-filter select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 180px;
}

.college-filter select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container,
    .college-filter select {
        width: 100%;
    }
}
.item-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensures all cards are the same height in grid */
}


.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.item-image {
   width: 100%;
    height: auto; /* Ensures the full image is shown without cropping */
    display: block;
    object-fit: contain; /* This prevents cutting off the image */
    max-height: 300px; 
}

.item-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.5rem 0 1rem;
    flex-grow: 1;
}

/* Add this to your style.css */
.total-sold {
    margin: 1rem 0;
    font-size: 1rem;
    color: var(--text-light);
}

.total-sold span {
    font-weight: 600;
    color: var(--primary-color);
}
/* About Page */
.about-section {
    padding: 2rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.price-container {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}
.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resale-price {
    color:#f04034;
    font-weight: 600;
    font-size: 1.1rem;
}

.step {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.item-card {
    animation: fadeIn 0.5s ease-in-out;
}
.item-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
/* Responsive */
@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}