*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Jersey 10", sans-serif;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

:root {
--brown-color: rgb(98, 76, 29);
}

html {
  font-size: clamp(1rem, 1rem + 1.15vw, 3rem);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

button {
  font-size: .85em;
}

a {
  display: block;
  font-size: 1rem;
}


header{

}

footer{

}








.brands-section{
    background: rgb(30, 72, 95);
    padding: 10px;
}

.brands-section .brands-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(6em, 100%), 1fr));
    gap: 1em;
    text-align: center;
}


.brands-section .brands-grid a{
    background: rgb(112, 186, 223);

}






.topic-section{
    margin: 1em auto;
    padding: 2em;
    background: grey;
}

.topic-section .one-topic{
    width: 90%;
    background: red;
    text-align: center;
    justify-items: center;
    margin: 20px 0;
    padding: 15px;
}



.topic-section .one-topic .topic-list{
    background: blue;
}

.topic-section .one-topic .topic-list ul{

}

.topic-section .one-topic .topic-list ul li{
    background: green;
}



/* Image Slider Styles */
.image-slider-container {
    position: relative;
    margin: 20px 0;
    max-width: 800px;
    width: 100%;
}

.image-slider {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.image-slider .slide {
    display: none;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
}

.image-slider .slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.whole-image {
    margin: 0;
    width: 100%;
}

.whole-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


/* Slider controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
}

.slider-prev,
.slider-next {
    background: #333;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: #555;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: #333;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: #666;
}



/* Credit styling for slider */
.image-slider-container .whole-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* If all credits are same, you might want to show it outside the slider */
.image-slider-container.same-credits .whole-image figcaption {
    position: static;
    background: transparent;
    color: #666;
    padding: 10px 0;
    font-style: italic;
}


.image-slider .slide:not(.active) figcaption {
    opacity: 0;
    visibility: hidden;
}

.image-slider .slide.active figcaption {
    opacity: 1;
    visibility: visible;
}




/* Error Messages */
.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.error-message h3 {
    margin: 0 0 15px 0;
}

.error-message a {
    display: inline-block;
    background: white;
    color: #ff6b6b;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.error-message a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}




.container .topics-section .topics-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(6em, 100%), 1fr));
    gap: 1em;
    text-align: center;
    padding: 10px;
}














/* ===== TEXT TOGGLE STYLES ===== */
.text-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 25px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 200px;
    justify-self: end;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-checkbox:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Hide section text when toggled off */
.section-text.hidden {
    display: none;
}

/* Optional: Add animation for showing/hiding */
.section-text {
    transition: opacity 0.3s ease;
}

/* ===== RESPONSIVE TOGGLE ===== */
@media (max-width: 768px) {
    .text-toggle-container {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
    
    .toggle-switch {
        width: 45px;
        height: 22px;
    }
    
    .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 4px;
        bottom: 4px;
    }
    
    .toggle-checkbox:checked + .toggle-slider:before {
        transform: translateX(23px);
    }
}

/* ===== TOGGLE POSITIONING ===== */
/* If you want it fixed at top right (uncomment to use): */
/*
.text-toggle-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}
*/

/* If you want it in breadcrumb area (add to existing .breadcrumb-nav styles): */
.breadcrumb-nav + .text-toggle-container {
    margin-top: -10px;
    margin-bottom: 20px;
    justify-self: start;
}