/* General Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #212529; /* Dark grey for general text */
    line-height: 1.6;
    background-color: #F8F9FA; /* Light background for the page */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #212529; /* Standard dark text color for headings */
}

a {
    color: #007bff; /* Standard link color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Custom Colors */
:root {
    --primary-color: #4CAF50; /* Farm Green */
    --secondary-color: #FFC107; /* Egg Yolk Yellow */
    --accent-color: #D32F2F; /* Rooster Red */
    --text-dark: #212529;
    --text-muted: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
}

.text-primary {
    color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-warning {
    color: var(--secondary-color) !important;
}
.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.text-success {
    color: var(--primary-color) !important; /* Reusing primary for success visuals */
}
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.btn-outline-dark {
    color: var(--text-dark);
    border-color: var(--text-dark);
}
.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
}
.btn-outline-dark.active {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

/* Navbar adjustments */
.navbar {
    top: 0;
    width: 100%;
    z-index: 1030; /* Ensure navbar is above other content */
}

.navbar-brand .fw-bold {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-image: url('visuals/content/chicken_farm_hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 120px !important; /* Adjust for fixed navbar */
    padding-bottom: 80px !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-section > .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: clamp(25px,5vw,55px) !important;
    color: #FFFFFF;
}

.hero-section p.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .form-control-lg {
    height: calc(2.875rem + 2px); /* Match btn-lg height */
}

/* General Section Padding */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Card Styles */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.2s ease-in-out;
}

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

.card-img-top {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    height: 200px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    cursor: pointer;
}

/* Product Cards */
.product-card .card-img-top {
    height: 250px;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .card-title {
    min-height: 48px; /* Ensure consistent height for titles */
}

.product-card .card-text.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Footer */
.footer-section {
    background-color: #212529; /* Dark background */
    color: #FFFFFF;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-section .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.fixed-contact-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Modals */
.modal-content {
    border-radius: 0.75rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Cart Modal Specifics */
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h6 {
    margin-bottom: 0.25rem;
}

.cart-item-details .price {
    font-weight: 600;
    color: var(--accent-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions select {
    width: 70px;
}

.cart-item-subtotal {
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }


    .hero-section p.lead {
        font-size: 1rem;
    }

    .hero-section .input-group {
        width: 90% !important;
    }

    .navbar-collapse {
        background-color: var(--bg-white);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .footer-section .list-unstyled.collapse:not(.show) {
        display: none !important;
    }
    .footer-section .list-unstyled.collapse.show {
        padding-top: 1rem;
    }
    .footer-section h5[data-bs-toggle="collapse"] {
        cursor: pointer;
    }
    .footer-section h5 .bi-chevron-down {
        transition: transform 0.3s ease;
    }
    .footer-section h5[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
    }

    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .cart-item-img {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .cart-item-details {
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .cart-item-actions {
        justify-content: center;
        width: 100%;
    }

    .cart-item-subtotal {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (min-width: 768px) {
    .footer-section h5[data-bs-toggle="collapse"] .bi-chevron-down {
        display: none !important;
    }
}
/* Styles for content within .complianceCoreSlot */
.complianceCoreSlot {
    padding: 3rem 1.5rem; /* Top/bottom padding and side padding */
    max-width: 960px; /* Max width for content readability */
    margin-left: auto; /* Center the content block */
    margin-right: auto; /* Center the content block */
}

.complianceCoreSlot h1 {
    font-size: 2.2rem; /* Moderate size for main headings */
    line-height: 1.2;
    margin-top: 2.5rem; /* Space above heading */
    margin-bottom: 1rem; /* Space below heading */
    color: var(--text-dark); /* Use defined dark text color */
}

.complianceCoreSlot h2 {
    font-size: 1.8rem; /* Slightly smaller than h1 */
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.complianceCoreSlot h3 {
    font-size: 1.5rem; /* Standard subheading size */
    line-height: 1.4;
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
}

.complianceCoreSlot h4 {
    font-size: 1.2rem; /* Smaller heading for sub-sections */
    line-height: 1.5;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.complianceCoreSlot h5 {
    font-size: 1rem; /* Smallest heading, often used for minor titles */
    line-height: 1.6;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.complianceCoreSlot p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.7; /* Good readability for paragraphs */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: var(--text-dark);
}

.complianceCoreSlot ul {
    list-style: disc; /* Standard disc for unordered lists */
    padding-left: 1.5rem; /* Indent list items */
    margin-bottom: 1rem; /* Space below the list */
    color: var(--text-dark);
}

.complianceCoreSlot ol {
    list-style: decimal; /* Standard decimal for ordered lists */
    padding-left: 1.5rem; /* Indent list items */
    margin-bottom: 1rem; /* Space below the list */
    color: var(--text-dark);
}

.complianceCoreSlot li {
    font-size: 1rem; /* Base font size for list items */
    line-height: 1.7; /* Good readability for list items */
    margin-bottom: 0.5rem; /* Space between list items */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .complianceCoreSlot {
        padding: 2rem 1rem; /* Reduce padding on smaller screens */
    }

    .complianceCoreSlot h1 {
        font-size: 1.8rem; /* Adjust h1 for mobile */
    }

    .complianceCoreSlot h2 {
        font-size: 1.5rem; /* Adjust h2 for mobile */
    }

    .complianceCoreSlot h3 {
        font-size: 1.3rem; /* Adjust h3 for mobile */
    }

    .complianceCoreSlot h4 {
        font-size: 1.1rem; /* Adjust h4 for mobile */
    }

    .complianceCoreSlot h5 {
        font-size: 0.95rem; /* Adjust h5 for mobile */
    }

    .complianceCoreSlot p,
    .complianceCoreSlot li {
        font-size: 0.95rem; /* Slightly smaller text for mobile readability */
    }
}


.form-check-label, .modal-body p{
    color: #000 !important;
    opacity: 1 !important;
}

.footer-section p, .footer-section li a, .footer-section div{
    color: #fff !important;
}

.modal-title{
    color: #fff !important;
}