/* =====================================================
   GLOSSARY PAGE STYLES - A-Z GLOSSAR
   ===================================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.glossary-hero {
    background: linear-gradient(135deg, #0B5077 0%, #09B2BD 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.glossary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.glossary-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.glossary-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glossary-hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.glossary-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0 0 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.glossary-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    font-family: 'Barlow', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =====================================================
   WHY GLOSSARY SECTION
   ===================================================== */
.glossary-why-section {
    padding: 80px 20px;
    background: white;
}

.glossary-why-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.glossary-why-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.glossary-icon-wrapper {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 80, 119, 0.05) 0%, rgba(9, 178, 189, 0.05) 100%);
    border-radius: 30px;
    padding: 40px;
    position: relative;
}

.glossary-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0B5077, #09B2BD);
    border-radius: 30px;
    opacity: 0.1;
    z-index: 0;
}

.glossary-icon-img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(11, 80, 119, 0.2));
}

.glossary-why-content {
    max-width: 700px;
}

.glossary-why-title {
    font-family: 'Barlow', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B5077;
    margin: 0 0 30px 0;
}

.glossary-why-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin: 0 0 20px 0;
}

.glossary-why-text p:last-child {
    margin-bottom: 0;
}

.glossary-cta-text {
    font-weight: 600;
    color: #09B2BD;
}

/* =====================================================
   GLOSSARY MAIN SECTION
   ===================================================== */
.glossary-main-section {
    padding: 60px 20px 80px;
    background: #f8f9fa;
}

/* Alphabet Navigation */
.alphabet-nav-wrapper {
    position: relative;
    margin-bottom: 50px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.alphabet-nav-wrapper.sticky {
    position: sticky;
    top: 80px;
    z-index: 900;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.alphabet-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    color: #0B5077;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.alphabet-letter:hover {
    background: linear-gradient(135deg, #0B5077, #09B2BD);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 80, 119, 0.3);
}

.alphabet-letter.active {
    background: linear-gradient(135deg, #0B5077, #09B2BD);
    color: white;
    border-color: transparent;
}

/* Glossary Terms Container */
.glossary-terms-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Letter Header */
.glossary-section {
    margin-bottom: 60px;
    scroll-margin-top: 150px;
}

.section-letter-header {
    margin-bottom: 30px;
}

.section-letter {
    font-family: 'Barlow', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #0B5077, #09B2BD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    position: relative;
    padding-bottom: 15px;
}

.section-letter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #09B2BD, transparent);
    border-radius: 2px;
}

/* Terms Grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.term-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.term-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(11, 80, 119, 0.15);
    border-color: #09B2BD;
}

.term-card:hover .term-title {
    color: #09B2BD;
}

.term-card:hover .term-arrow {
    color: #09B2BD;
    transform: translateX(5px);
}

.term-title {
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.term-arrow {
    color: #adb5bd;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0B5077, #0B5077);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(11, 80, 119, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 80, 119, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.glossary-contact-section {
    padding: 80px 20px;
    background: white;
}

.glossary-contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.glossary-contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.glossary-contact-title {
    font-family: 'Barlow', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0B5077;
    margin: 0 0 15px 0;
}

.glossary-contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.glossary-contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #09B2BD;
    box-shadow: 0 0 0 3px rgba(9, 178, 189, 0.1);
}

.glossary-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0B5077, #09B2BD);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Barlow', sans-serif;
}

.glossary-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 80, 119, 0.3);
}

.glossary-submit-btn svg {
    transition: transform 0.3s ease;
}

.glossary-submit-btn:hover svg {
    transform: translateX(5px);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .glossary-hero-title {
        font-size: 2.8rem;
    }
    
    .glossary-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .glossary-icon-wrapper {
        max-width: 250px;
    }
    
    .terms-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .glossary-hero {
        padding: 100px 20px 60px;
    }
    
    .glossary-hero-title {
        font-size: 2.2rem;
    }
    
    .glossary-hero-subtitle {
        font-size: 1.05rem;
    }
    
    .glossary-hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .glossary-why-section {
        padding: 60px 20px;
    }
    
    .glossary-why-title {
        font-size: 2rem;
    }
    
    .alphabet-nav {
        gap: 8px;
    }
    
    .alphabet-letter {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-letter {
        font-size: 3rem;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .glossary-contact-form {
        padding: 30px 20px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .glossary-hero-title {
        font-size: 1.8rem;
    }
    
    .glossary-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .glossary-why-title {
        font-size: 1.6rem;
    }
    
    .glossary-contact-title {
        font-size: 1.8rem;
    }
    
    .alphabet-nav-wrapper {
        padding: 15px;
    }
    
    .alphabet-nav-wrapper.sticky {
        top: 70px;
    }
    
    .alphabet-letter {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .section-letter {
        font-size: 2.5rem;
    }
    
    .term-card {
        padding: 15px 18px;
    }
}
