/* HERO SECTION*/
.hero {
min-height: 100vh;
width: 100%;
display: flex;
flex-direction: column;/*to review*/
}

.hero p {
font-size: 1.6rem;
line-height: 1.6;
font-weight: 400;
margin: 1rem 0;
}

.hero-left .hero-right {
width: 100%;
display: flex;
flex-direction: column;
padding: 2rem 1.5rem;
min-height: 50vh;
}

.hero-left {
    background-color: #f0dfcc;
}

.hero-right{
    background-color: #1B5E20;
    border-bottom-right-radius: 10px;
}
.hero h1{
font-size: 2.2rem;
margin-bottom: 1rem;
order: 1;
}

.hero-left p{
color: #1B5E20;
order: 2;
}

.hero-right h1 {
    color: #EDE7DC;
}

.hero-right p{
color: #6bcd31;
order: 2;
}

.hero img {
    height: auto;
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
    order: 3;
}

.hero-left img{
order: 3;
}

.hero-right img{
    order: 3;
}

.hero a{
display: inline-block;
border-radius: 8px;
background-color: #1B5E20;
font-size: 1.6rem;
align-self: flex-start;
color: white;
padding: 12px 24px;
text-transform: uppercase;
text-decoration: none;
margin-top: 1.5rem;
order: 4;
transition: all 0.3s ease-in-out;
}

.hero-right a{
background-color: #1B5E20;
color: white;
}

.hero a:hover{
    background-color: #6bcd31;
    transform: translate(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-right a:hover{
background-color: #6bcd31;
color: white;
}

/*==RESPONSIVE HERO SECTION==*/
/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
.hero {
    flex-direction: row; /* Side by side on tablet+ */
    min-height: 85vh;
}
    
.hero-left,
.hero-right {
    width: 50%;
    padding: 3rem 2rem;
    justify-content: center; /* Center content vertically */
}
    
.hero-left h1,
.hero-right h1 {
    font-size: 2.5rem;
}
    
.hero p {
    font-size: 1.8rem;
}
    
.hero img {
    max-width: 300px;
    margin: 2rem 0;
}
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
.hero-left,
.hero-right {
    padding: 4rem 3rem;
}
    
.hero-left h1,
.hero-right h1 {
    font-size: 3rem;
}
    
.hero p {
    font-size: 2rem;
}
    
.hero img {
    max-width: 400px;
}
    
    /* Reorder elements for better visual flow */
.hero-left {
    flex-direction: column;
}
    
.hero-right {
    flex-direction: column;
}
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
.hero-left h1,
.hero-right h1 {
    font-size: 3.5rem;
}
    
.hero p {
    font-size: 2.2rem;
}
}

/* Mobile Optimization (below 480px) */
@media (max-width: 480px) {
.hero-left,
.hero-right {
    padding: 1.5rem 1rem;
    min-height: 40vh;
}
    
.hero-left h1,
.hero-right h1 {
    font-size: 1.8rem;
}
    
.hero p {
    font-size: 1.4rem;
}
    
.hero a {
    font-size: 1.4rem;
    padding: 10px 20px;
}
}

/*CATEGORY SECTION*/

.category-section {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px #FBC02D;
    margin-bottom: 3.2rem;
    margin-top: 1.5rem;
}
        
.section-header {
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 3.2rem;
    border-radius: 10px 10px 0 0;
}
        
.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 0.8rem;
    justify-self: center;
    text-transform: uppercase;
}
        
.section-description {
    font-size: 1.8rem;
    opacity: 0.9;
    justify-self: center;
}
        
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.4rem;
    padding: 3.2rem;
}
        
.category-card {
    background: var(--cream-bg);
    padding: 2.4rem;
    border-radius: 8px;
    border-left: 4px solid var(--menu-green);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
        
.category-card:hover {
    transform: translateY(-5px);
}
        
.category-card h3 {
    color: var(--dark-green);
    margin-bottom: 1.6rem;
    font-size: 1.9rem;
    min-height: 4.8rem;
}
        
.category-list {
    list-style: none;
    flex-grow: 1;
}
        
.category-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 1.4rem;
}
        
.category-list li:before {
    content: "•";
    color: var(--menu-green);
    font-weight: bold;
    margin-right: 8px;
}
        
.sunflower-highlight {
    background-color: rgba(255, 204, 0, 0.1);
    border-left: 3px solid #FFCC00;
    padding: 0.3rem 0.5rem;
    margin: 0.5rem 0;
    border-radius: 3px;
    font-weight: 600;
}
        
/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.6rem 3.2rem;
    background-color: var(--menu-green);
    color: var(--dark-green);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
}
        
.btn:hover {
    background-color: var(--hover-green);
    transform: translateY(-2px);
}
        
.btn-large {
    padding: 1.9rem 4.8rem;
    font-size: 1.9rem;
}
        
.cta-section {
    text-align: center;
    background-color: var(--dark-green);
    color: var(--text-light);
    padding: 4.8rem 0;
}

/*RESPONSIVE*/


 /* ===== CATEGORY SECTION ===== */
@media (max-width: 1200px) {
.categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
                           
.categories-grid {
    grid-template-columns: repeat(2, 1fr);
}
            
.section-padding {
    padding: 4.8rem 0; 
}
}
        
@media (max-width: 768px) {
.categories-grid {
    grid-template-columns: 1fr;
    gap: 16px; /* 1rem = 16px */
    padding: 2.4rem;
}

.container {
    padding: 0 15px;
}
            
.section-header h2 {
    font-size: 2.9rem;
}
            
.section-header {
    padding: 2.4rem;
}
            
.category-card {
    padding: 1.6rem;
}
            
.category-card h3 {
    font-size: 1.8rem;
    min-height: 4rem;
}
}
        
@media (max-width: 412px) {
.categories-grid {
    gap: 1.6rem;
}
            
.btn-large {
    padding: 1.6rem 3.2rem;
    font-size: 1.6rem;
 }

}

/*== TRUST SECTION==*/

/* ========================================================== */
/* 1. LAYOUT AND RESPONSOVENESS */
/* ========================================================== */

/* Base Styles */
.trust-section {
    margin-top: 1.5rem;
    padding: 40px 20px;
    text-align: center;
    border: 2px solid #FFCC00;
   /* background-color: #f9f9f9;*/
}

.trust-section h2 {
    font-size: 3.5rem;
    margin-bottom: rem;
    justify-self: center;
    text-transform: uppercase;
    color: #1B5E20;
}

/* Content Container (Centers content and sets max-width) */
.container {
    max-width: 1280px; /* Optimal max-width for modern web */
    margin: 0 auto;
    padding: 0 15px;
    
}

/* Certificate Grid Layout */
.certificates-grid {
    display: grid;
    /* Responsive columns: At least 250px wide, up to 1 fraction of space */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 0;
}

/* Wrapper is necessary for the checkbox hack siblings */
.certificate-wrapper {
    position: relative; /* Needed to position the overlay correctly */
}

/* Individual Certificate Item Styles */
.certificate-item {
    display: block; /* Make the label fill the wrapper */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%; /* Important for equal height rows */
}

.certificate-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.certificate-item img {
    width: 100%;
    height: auto;
    max-height: 200px; 
    object-fit: contain; 
    border-radius: 4px;
    /* Use the zoom-in cursor to indicate clickability */
    cursor: zoom-in; 
}

.certificate-item span {
    margin-top: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #555;
}

.trust-message {
font-size: 2.2rem;
color: #1B5E20;
justify-self: center;
line-height: 1;
font-weight: 400;
margin-top: 1.5rem;
text-transform: uppercase;
}

/* ========================================================== */
/* 2. PURE CSS ZOOM (CHECKBOX HACK) */
/* ========================================================== */

/* Hide the actual checkbox input */
.zoom-checkbox {
    display: none;
}

/* Default state of the overlay: HIDDEN */
.zoom-overlay {
    /* Fixed position to cover the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Semi-transparent background */
    background-color: rgba(0, 0, 0, 0.9);
    
    /* Center the content */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Initially hide the overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 1000;
}

/* The magic: Use the :checked pseudo-class on the checkbox 
   and the adjacent sibling selector (~) to show the overlay. 
   The overlay is a sibling of the checkbox, wrapped in the same parent.
*/
.zoom-checkbox:checked ~ .zoom-overlay {
    opacity: 1;
    visibility: visible;
}

/* Style for the zoomed image inside the overlay */
.zoom-overlay img {
    /* Limit size to viewport dimensions */
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 5px solid #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* Add a custom close button (the 'X') */
.zoom-overlay::after {
    content: 'Click anywhere to close (X)';
    position: fixed;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 1.2em;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Ensure the text is above the image */
}
