/* ============================================
   OWANLY CULTURE PAGE STYLES
   Complete Cultural History Design
   ============================================ */

/* ============================================
   CULTURE HERO
   ============================================ */
.culture-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, #0A3517 50%, #0D4420 100%);
    padding: 10rem 2rem 5rem;
    text-align: center;
    overflow: hidden;
}

.culture-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(151, 241, 56, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(151, 241, 56, 0.08) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2397F138' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.culture-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(151, 241, 56, 0.15);
    color: var(--lime);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.culture-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.culture-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.culture-toc {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 70px;
    z-index: 80;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.toc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.toc-item:hover {
    background: rgba(151, 241, 56, 0.15);
    border-color: var(--lime);
    transform: translateY(-2px);
}

.toc-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--lime);
    background: var(--dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.culture-main {
    padding: 4rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 20%, #fff 80%, #f8f9fa 100%);
}

/* ============================================
   CULTURE SECTIONS
   ============================================ */
.culture-section {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #eee;
    position: relative;
    scroll-margin-top: 180px;
}

.culture-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-number {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(151, 241, 56, 0.15);
    line-height: 1;
    pointer-events: none;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 6px;
    height: 1.5em;
    background: var(--lime);
    border-radius: 3px;
}

/* ============================================
   TEXT STYLES
   ============================================ */
.lead-text {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.emphasis-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.culture-section p {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ============================================
   SUBSECTIONS
   ============================================ */
.subsection {
    margin-top: 3rem;
}

.subsection-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card h3 i {
    color: var(--lime);
}

.info-card p {
    margin-bottom: 0.75rem;
}

/* ============================================
   STYLED LISTS
   ============================================ */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #555;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--lime);
    border-radius: 50%;
}

/* ============================================
   BOUNDARIES GRID
   ============================================ */
.boundaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.boundary-item {
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.boundary-direction {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.boundary-region {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight-box {
    background: rgba(151, 241, 56, 0.1);
    border-left: 4px solid var(--lime);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.highlight-box p {
    margin-bottom: 0;
}

.highlight-box.highlight-gold {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--lime), var(--dark));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--lime);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateX(-6.5px);
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0;
}

/* ============================================
   CLANS GRID
   ============================================ */
.clans-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.clan-detailed-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.clan-detailed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--lime);
}

.clan-detailed-card.clan-featured {
    border-color: var(--lime);
    background: rgba(151, 241, 56, 0.05);
}

.clan-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.clan-num {
    width: 32px;
    height: 32px;
    background: var(--dark);
    color: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
}

.clan-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.clan-detailed-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: #666;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================================
   AGE GRADES
   ============================================ */
.age-grades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.age-grade-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.age-grade-header {
    background: var(--dark);
    padding: 1.25rem;
    text-align: center;
}

.age-range {
    display: inline-block;
    background: rgba(151, 241, 56, 0.2);
    color: var(--lime);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.age-grade-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0.25rem 0;
}

.age-title {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.age-grade-card > p {
    padding: 1.25rem;
    margin: 0;
}

/* ============================================
   ROYAL LIST
   ============================================ */
.royal-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.royal-list li {
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
}

.royal-title {
    color: var(--lime);
    font-weight: 700;
    font-size: 0.9375rem;
}

/* ============================================
   LEGEND & TABOO BOXES
   ============================================ */
.legend-box,
.taboo-box {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.legend-box {
    border-left: 4px solid #3b82f6;
}

.taboo-box {
    border-left: 4px solid #ef4444;
}

.legend-box h4,
.taboo-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-box h4 i {
    color: #3b82f6;
}

.taboo-box h4 i {
    color: #ef4444;
}

/* ============================================
   BELIEFS GRID
   ============================================ */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.belief-card {
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.belief-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--lime);
    margin-bottom: 0.5rem;
}

.belief-card p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

/* ============================================
   FESTIVALS
   ============================================ */
.festival-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.festival-card.festival-featured {
    border: 2px solid var(--lime);
}

.festival-header {
    background: var(--dark);
    padding: 1.5rem;
    text-align: center;
}

.festival-clan {
    display: inline-block;
    background: rgba(151, 241, 56, 0.2);
    color: var(--lime);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.festival-header h3 {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    margin: 0.5rem 0;
}

.festival-type {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.festival-body {
    padding: 1.5rem;
}

.festival-intro {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.festival-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.festival-details li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9375rem;
    color: #555;
}

.festival-details li:last-child {
    border-bottom: none;
}

/* ============================================
   MARRIAGE STAGES
   ============================================ */
.marriage-stages {
    margin-top: 2rem;
}

.marriage-stage {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    position: relative;
}

.stage-number {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background: var(--lime);
    color: var(--dark);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.marriage-stage h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.marriage-stage ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.marriage-stage ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #555;
}

.marriage-stage ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--lime);
    font-weight: bold;
}

.bride-list {
    background: rgba(151, 241, 56, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.bride-list h5 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

/* ============================================
   FOOD SECTION
   ============================================ */
.food-featured {
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.food-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.food-featured h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.25rem;
}

.food-subtitle {
    font-size: 1rem;
    color: var(--lime);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.food-emphasis {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    margin-bottom: 2rem;
}

.food-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: left;
}

.food-detail {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.25rem;
}

.food-detail h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.food-detail p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
}

.food-secondary {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.food-secondary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.food-secondary p {
    margin: 0;
}

/* ============================================
   ECONOMY TIMELINE
   ============================================ */
.economy-timeline {
    margin-top: 2rem;
}

.economy-event {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--lime);
}

.economy-event.highlight {
    background: rgba(151, 241, 56, 0.1);
}

.economy-date {
    display: inline-block;
    background: var(--dark);
    color: var(--lime);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.economy-event h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.economy-event p {
    margin: 0;
}

/* ============================================
   TABOOS GRID
   ============================================ */
.taboos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.taboo-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.taboo-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.taboo-icon i {
    font-size: 1.5rem;
    color: #ef4444;
}

.taboo-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.taboo-card p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================================
   ATTIRE GRID
   ============================================ */
.attire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.attire-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.attire-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.attire-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.attire-card p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================================
   WAR INFO
   ============================================ */
.war-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.war-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.war-card.war-resistance {
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    border: none;
}

.war-card.war-resistance h4,
.war-card.war-resistance p {
    color: #fff;
}

.war-card.war-resistance h4 i {
    color: var(--lime);
}

.war-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.war-card h4 i {
    color: var(--lime);
}

.war-card p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.culture-cta {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, #0D4420 100%);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.culture-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.culture-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
}

.culture-cta p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.culture-cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(151, 241, 56, 0.1);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--dark);
    color: var(--lime);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--lime);
    color: var(--dark);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .culture-hero {
        padding: 8rem 1.5rem 4rem;
    }

    .culture-toc {
        position: relative;
        top: 0;
        padding: 2rem 1rem;
    }

    .toc-grid {
        gap: 0.375rem;
    }

    .toc-item {
        padding: 0.375rem 0.75rem;
    }

    .toc-text {
        font-size: 0.75rem;
    }

    .culture-main {
        padding: 2rem 0;
    }

    .culture-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        scroll-margin-top: 80px;
    }

    .section-number {
        font-size: 4rem;
        opacity: 0.1;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .clans-detailed-grid {
        grid-template-columns: 1fr;
    }

    .boundaries-grid,
    .feature-cards,
    .age-grades,
    .beliefs-grid,
    .taboos-grid,
    .attire-grid,
    .war-info {
        grid-template-columns: 1fr;
    }

    .food-details {
        grid-template-columns: 1fr;
    }

    .royal-list {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .culture-cta {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .culture-hero {
        padding: 7rem 1rem 3rem;
    }

    .section-heading {
        padding-left: 1rem;
    }

    .section-heading::before {
        width: 4px;
    }

    .marriage-stage {
        padding: 1.5rem 1.25rem;
    }

    .food-featured {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .culture-hero,
    .culture-toc,
    .culture-cta,
    .nav,
    .footer,
    .back-to-top {
        display: none !important;
    }

    .culture-main {
        padding: 0;
    }

    .culture-section {
        page-break-inside: avoid;
    }
}
