/* ═══════════════ VARIABLES & RESET ═══════════════ */
:root {
    --ink: #1c1c1e;
    --cream: #fafafa;
    --warm: #f5f5f5;
    --gold: #1EA7B1;
    --gold-light: #3dbfc9;
    --forest: #1c1c1e;
    --forest-light: #2e2e2e;
    --rust: #0d7a85;
    --mist: #e8e8e8;
    --shadow: rgba(28, 28, 30, 0.1);
    --shadow-deep: rgba(28, 28, 30, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
}

img {
    max-width: 100%;
}

.home_about_c{
    display: flex;
    align-items: self-start;
    gap: 40px;
    margin-bottom: 16px;
    margin-top: 16px;
}

.home_img{
    width: 20%;
    padding-top: 0;
}

.home-about-values{
    width: calc(80% - 40px);
}


/* ═══════════════ PAGE SYSTEM ═══════════════ */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ═══════════════ HEADER ═══════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 72px;
    padding: 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #ebebeb;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 24px rgba(69, 69, 69, 0.08);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--forest);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    font-size: 13.5px;
    color: var(--ink);
    opacity: 0.6;
    transition: opacity 0.2s;
    position: relative;
    padding-bottom: 2px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s;
}

nav a:hover, nav a.active {
    opacity: 1;
}

nav a.active::after, nav a:hover::after {
    transform: scaleX(1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: flex;
    gap: 3px;
}

.lang-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid transparent;
    background: none;
    color: var(--ink);
    opacity: 0.4;
    transition: all 0.2s;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--gold);
    color: var(--forest);
}

.btn-login {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    height: 34px;
    border: 1.5px solid var(--forest);
    border-radius: 7px;
    background: none;
    color: var(--forest);
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--forest);
    color: var(--cream);
}

.btn-register {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    height: 34px;
    border: none;
    border-radius: 7px;
    background: var(--forest);
    color: var(--cream);
    transition: all 0.2s;
}

.btn-register:hover {
    background: var(--forest-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════ MOBILE NAV ═══════════════ */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 190;
    background: var(--cream);
    padding: 90px 32px 48px;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    display: flex;
    transform: translateX(0);
}

.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--mist);
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--forest);
}

.mobile-nav-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-footer .btn-register, .mobile-nav-footer .btn-login {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 15px;
    border-radius: 10px;
}

.mobile-lang {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ═══════════════ EVENTS TICKER ═══════════════ */
.events-strip {
    background: #1a1a1a;
    padding: 11px 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.events-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.events-ticker {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.events-ticker span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-ticker span::before {
    content: '●';
    font-size: 5px;
    opacity: 0.45;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ═══════════════ SHARED COMPONENTS ═══════════════ */
.section-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #1EA7B1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: '';
    display: block;
    width: 16px;
    height: 1px;
    background: #1EA7B1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section-title.light {
    color: #1a1a1a;
}

.view-all {
    font-size: 13px;
    font-weight: 500;
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.view-all:hover {
    opacity: 1;
}

.btn-primary {
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 28px;
    background: #1EA7B1;
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary:hover {
    background: #26bec9;
    transform: translateY(-1px);
}

.btn-secondary {
    font-size: 13.5px;
    font-weight: 400;
    padding: 12px 28px;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.btn-ghost-light {
    font-size: 13.5px;
    font-weight: 400;
    padding: 12px 24px;
    background: none;
    color: rgba(245, 240, 232, 0.75);
    border: 1.5px solid rgba(245, 240, 232, 0.25);
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost-light:hover {
    border-color: rgba(245, 240, 232, 0.6);
    color: var(--cream);
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}

.badge-green {
    background: var(--forest);
    color: white;
}

.badge-rust {
    background: var(--rust);
    color: white;
}

.badge-gold {
    background: var(--gold);
    color: var(--ink);
}

.badge-mist {
    background: var(--mist);
    color: rgba(69, 69, 69, 0.55);
}

/* ═══════════════ STATS ═══════════════ */
.stats {
    background: white;
    padding: 64px 64px;
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    border-bottom: 1px solid #ebebeb;
}

.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #ebebeb;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 700;
    color: #1EA7B1;
    line-height: 1;
    margin-bottom: 6px;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: rgba(28, 28, 30, 0.38);
    letter-spacing: 0.5px;
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
    background: #1a1a1a;
    padding: 72px 64px 40px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-top {
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.07);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-mission {
    font-size: 13px;
    line-height: 1.85;
    max-width: 280px;
    margin-bottom: 22px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(245, 240, 232, 0.05);
    border: 1px solid rgba(245, 240, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    color: rgba(245, 240, 232, 0.5);
}

.social-btn:hover {
    background: rgba(245, 240, 232, 0.1);
    transform: translateY(-2px);
    color: var(--gold-light);
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.4);
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.newsletter-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.newsletter-row input {
    flex: 1;
    padding: 10px 13px;
    border: 1px solid rgba(245, 240, 232, 0.1);
    border-radius: 8px;
    background: rgba(245, 240, 232, 0.05);
    color: var(--cream);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-row input:focus {
    border-color: var(--gold);
}

.newsletter-row input::placeholder {
    color: rgba(245, 240, 232, 0.2);
}

.newsletter-row button {
    padding: 10px 14px;
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s;
}

.newsletter-row button:hover {
    background: var(--gold-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 12px;
}

.footer-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-info span {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════ PAGE HERO ═══════════════ */
.page-hero {
    padding-top: 72px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 75% 40%, rgba(184, 147, 106, 0.1) 0%, transparent 65%);
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 64px 60px;
    position: relative;
    z-index: 1;
}
.page-hero-inner-library{
    padding: 64px 64px 60px;
    max-width: 1400px;
}


.page-hero-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-hero-tag::before {
    content: '';
    display: block;
    width: 16px;
    height: 1px;
    background: var(--gold-light);
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.6);
    max-width: 520px;
}

/* ═══════════════ BOOK CARD ═══════════════ */
.book-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s;
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: #1EA7B1;
}

.book-card:hover .book-title {
    /*white-space: normal;*/
    /*overflow: visible;*/
    /*text-overflow: clip;*/
    /*height: auto;*/
    /*padding-bottom: 5px;*/
}


    .book-cover {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.book-cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: rgba(245, 240, 232, 0.75);
    text-align: center;
    padding: 20px;
    line-height: 1.4;
}

.book-cover .badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.book-genre {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.book-info {
    padding: 18px 18px 18px;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
    line-height: 1.3;
    min-height: 48px;
    height: 3rem;
    overflow: hidden;
}

.book-author {
    font-size: 12.5px;
    color: rgba(69, 69, 69, 0.45);
    margin-bottom: 14px;
}

.btn-reserve {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
    border: 1.5px solid #1a1a1a;
    border-radius: 8px;
    background: none;
    color: #1a1a1a;
    transition: all 0.2s;
}

.btn-reserve:hover {
    background: #1a1a1a;
    color: white;
}

.btn-reserve.taken {
    border-color: #e0e0e0;
    background: none;
    color: rgba(69, 69, 69, 0.3);
    cursor: not-allowed;
}

/* form */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(69, 69, 69, 0.4);
    margin-bottom: 7px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--mist);
    border-radius: 9px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

/* ════════════════════════════════════════════════
   PAGE 1: HOME
════════════════════════════════════════════════ */

/* Hero */
.hero {
    min-height: calc(100vh - 72px);
    margin-top: 72px;
    display: grid;
    grid-template-columns:1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-left {
    background: var(--forest);
    padding: 80px 60px 80px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-left::before {
    content: '"';
    position: absolute;
    top: -60px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 380px;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.hero-tag {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.7s 0.1s both;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gold-light);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--cream);
    margin-bottom: 22px;
    letter-spacing: -1.5px;
    animation: fadeUp 0.7s 0.2s both;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-quote {
    font-family: 'Noto Serif Armenian', serif;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.58);
    margin-bottom: 44px;
    max-width: 420px;
    border-left: 2px solid var(--gold);
    padding-left: 18px;
    animation: fadeUp 0.7s 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.4s both;
}

.hero-right {
    background: var(--warm);
    padding: 15px 56px 15px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    animation: fadeUp 0.7s 0.3s both;
}

.armine-card {
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 56px var(--shadow-deep);
}

.armine-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c1c1e 0%, #1EA7B1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.armine-name {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 3px;
}

.armine-dates {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 13px;
}

.armine-bio {
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(69, 69, 69, 0.6);
}

.dream-card {
    background: var(--forest);
    border-radius: 14px;
    padding: 24px 26px;
}

.dream-card-2{
    padding-left: 0;
}

.dream-card::before {
    content: '❝';
    font-size: 28px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}

.dream-card p {
    font-family: 'Noto Serif Armenian', serif;
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(245, 240, 232, 0.75);
    font-style: italic;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: calc(25% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(245, 240, 232, 0.3);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: fadeIn 1s 1s both;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.35), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* How it works */
.how-works {
    padding: 96px 64px;
    background: white;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.steps {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 44px;
    margin-top: 56px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 34px;
    left: calc(16.6% + 14px);
    right: calc(16.6% + 14px);
    height: 1px;
    background: var(--mist);
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid #1EA7B1;
    color: #1EA7B1;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.step p {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(69, 69, 69, 0.55);
}

/* Books preview */
.books-preview {
    padding: 104px 64px;
    background: #fafafa;
}

.books-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.genre-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.genre-tab {
    font-size: 12.5px;
    font-weight: 400;
    padding: 6px 15px;
    border-radius: 100px;
    border: 1px solid #ddd;
    background: none;
    color: rgba(28, 28, 30, 0.45);
    transition: all 0.2s;
}

.genre-tab.active, .genre-tab:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.books-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 22px;
}

/* Ambassadors preview */
.ambassadors {
    background: #f7f7f7;
    padding: 104px 64px;
    border-top: 1px solid #ebebeb;
}

.ambassador-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}

.amb-card {
    background: white;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    text-align: center;
}

.amb-card:hover {
    border-color: #1EA7B1;
    transform: translateY(-3px);
}

.amb-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: white;
    font-weight: 700;
    margin-bottom: 14px;
}

.amb-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.amb-stat {
    font-size: 11.5px;
    color: #1EA7B1;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.amb-quote {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(28, 28, 30, 0.48);
    font-style: italic;
}

.amb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1EA7B1;
    border: 1px solid rgba(30, 167, 177, 0.25);
    padding: 5px 11px;
    border-radius: 100px;
}

/* Donate strip */
.donate-strip {
    padding: 96px 64px;
    background: white;
    border-top: 1px solid #ebebeb;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 80px;
    align-items: center;
}

.donate-strip-text p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(69, 69, 69, 0.6);
    margin-bottom: 36px;
    max-width: 420px;
}

.donate-card {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 40px;
    border: 1px solid #e8e8e8;
}

.donate-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 6px;
}

.donate-card-sub {
    font-size: 13px;
    color: rgba(69, 69, 69, 0.45);
    margin-bottom: 28px;
}

.donated-list {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mist);
}

.donated-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(69, 69, 69, 0.35);
    margin-bottom: 12px;
}

.donated-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(69, 69, 69, 0.6);
    margin-bottom: 10px;
}

.donated-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════
   PAGE 2: ABOUT ARMINE
════════════════════════════════════════════════ */
.about-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 64px;
}

.about-grid {
    display: grid;
    grid-template-columns:1fr 2fr;
    gap: 64px;
    align-items: start;
}

.about-photo-col {
}

.about-photo {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 16px;
    background: linear-gradient(160deg, var(--forest) 0%, #1a2d25 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.about-photo-initial {
    font-family: 'Playfair Display', serif;
    font-size: 100px;
    font-weight: 700;
    color: rgba(245, 240, 232, 0.15);
}

.about-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(69, 69, 69, 0.7) 0%, transparent 50%);
}

.about-photo-name {
    position: absolute;
    bottom: 24px;
    left: 24px;
}

.about-photo-name h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.2;
}

.about-photo-name span {
    font-size: 12px;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.value-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
}

.value-icon {
    font-size: 16px;
}

.about-text-col {
}

.about-intro {
    font-family: 'Noto Serif Armenian', serif;
    font-size: 18px;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.about-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 16px;
    margin-top: 40px;
}

.about-p {
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(69, 69, 69, 0.65);
    margin-bottom: 16px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}

.tl-item {
    display: flex;
    gap: 20px;
    padding-bottom: 28px;
    position: relative;
}

.tl-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 1.5px;
    background: var(--mist);
}

.tl-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #1EA7B1;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.tl-content {
}

.tl-year {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.tl-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(69, 69, 69, 0.55);
}

.fav-books-section {
    background: white;
    padding: 72px 64px;
    border-top: 1px solid #ebebeb;
}

.fav-books-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 22px;
    margin-top: 40px;
}

/* ════════════════════════════════════════════════
   PAGE 3: LIBRARY
════════════════════════════════════════════════ */
.library-body {
    background: var(--cream);
}

.library-controls {
    background: white;
    border-bottom: 1px solid #ebebeb;
    padding: 0 64px;
}

.library-tabs-row {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.library-tabs-row::-webkit-scrollbar {
    display: none;
}

.lib-tab {
    font-size: 13px;
    font-weight: 500;
    padding: 18px 20px;
    border: none;
    background: none;
    color: rgba(69, 69, 69, 0.5);
    border-bottom: 2.5px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.lib-tab.active {
    color: var(--forest);
    border-bottom-color: var(--forest);
}

.lib-tab:hover {
    color: var(--forest);
    opacity: 0.8;
}

.library-search-row {
    padding: 18px 64px;
    background: #fafafa;
    border-bottom: 1px solid #ebebeb;
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-input-wrap input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid var(--mist);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.search-input-wrap input:focus {
    border-color: var(--gold);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.4;
}

.search-sort {
    padding: 11px 14px;
    border: 1.5px solid var(--mist);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: white;
    outline: none;
    cursor: pointer;
    appearance: none;
}

.books-main {
    padding: 48px 64px 72px;
    max-width: 1400px;
    margin: 0 auto;
}

.books-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.results-count {
    font-size: 13px;
    color: rgba(69, 69, 69, 0.45);
}

.full-books-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 22px;
}

/* ════════════════════════════════════════════════
   PAGE 4: EVENTS
════════════════════════════════════════════════ */
.events-body {
    padding: 64px;
}

.events-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 48px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.event-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: #1EA7B1;
}

.event-date-col {
    background: #1EA7B1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    flex-shrink: 0;
}

.event-day {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1;
}

.event-month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
}

.event-body {
    padding: 24px 28px;
    flex: 1;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.event-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(69, 69, 69, 0.55);
    margin-bottom: 14px;
}

.event-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.event-meta span {
    font-size: 12px;
    color: rgba(69, 69, 69, 0.45);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-actions {
    display: flex;
    align-items: center;
    padding: 24px 20px;
}

.events-sidebar {
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    padding: 24px;
    margin-bottom: 16px;
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 18px;
}

.mini-event {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--mist);
}

.mini-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mini-date {
    background: #1EA7B1;
    color: white;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    min-width: 44px;
    flex-shrink: 0;
}

.mini-date-day {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.mini-event-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
}

.mini-event-time {
    font-size: 12px;
    color: rgba(69, 69, 69, 0.4);
    margin-top: 3px;
}

/* ════════════════════════════════════════════════
   PAGE 5: DONATE
════════════════════════════════════════════════ */
.donate-body {
    padding: 72px 64px;
}

.donate-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 64px;
    align-items: start;
}

.donate-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 20px;
    line-height: 1.2;
}

.donate-info p {
    font-size: 14.5px;
    line-height: 1.9;
    color: rgba(69, 69, 69, 0.6);
    margin-bottom: 24px;
}

.donate-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 32px 0;
}

.perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
}

.perk-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.perk h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 3px;
}

.perk p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(69, 69, 69, 0.55);
}

.recent-donations {
    background: var(--warm);
    border-radius: 14px;
    padding: 24px;
    margin-top: 32px;
}

.recent-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(69, 69, 69, 0.35);
    margin-bottom: 14px;
}

.donate-form-card {
    background: white;
    border-radius: 18px;
    padding: 44px;
    box-shadow: 0 16px 48px var(--shadow);
    position: sticky;
    top: 100px;
}

/* ════════════════════════════════════════════════
   PAGE 6: AMBASSADORS
════════════════════════════════════════════════ */
.ambassadors-body {
    padding: 64px;
}

.amb-top-three {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.amb-top-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(184, 147, 106, 0.1);
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/*.amb-top-card:first-child {*/
/*    border-top: 3px solid var(--gold);*/
/*}*/

.amb-top-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px var(--shadow);
}

.amb-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
}

.amb-big-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: white;
    font-weight: 700;
}

.amb-top-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.amb-top-stat {
    font-size: 12.5px;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 12px;
}

.amb-top-quote {
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(69, 69, 69, 0.55);
    font-style: italic;
    margin-bottom: 20px;
}

.all-amb-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 18px;
}

.all-amb-row {
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(184, 147, 106, 0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.all-amb-row:hover {
    border-color: rgba(184, 147, 106, 0.25);
    background: var(--warm);
}

.all-amb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.all-amb-info {
    flex: 1;
}

.all-amb-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.all-amb-books {
    font-size: 12px;
    color: rgba(69, 69, 69, 0.4);
}

/* ════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .books-grid, .full-books-grid, .fav-books-grid {
        grid-template-columns:repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns:1fr 1fr;
        gap: 32px;
    }

    .donate-layout {
        gap: 40px;
    }

    .all-amb-grid {
        grid-template-columns:repeat(2, 1fr);
    }
}

/*@media (max-width: 1200px) {*/
/*    .page-hero-inner-library {*/
/*        padding-left: 28px;*/
/*        padding-right: 28px;*/
/*    }*/

/*}*/

@media (max-width: 1217px) {
    header {
        padding: 0 25px!important;
    }
}

@media (max-width: 1088px) {
    nav {
        gap: 8px;
    }
}

@media (max-width: 980px) {
    header {
        padding: 0 28px;
    }

    nav:not(#paginationLibrary):not(#account_menu), .header-right .lang-switch, .btn-login, .btn-register {
        display: none;
    }

    .hamburger {
        display: flex;
    }
    header {
        padding: 0 28px!important;
    }
}

@media (max-width: 980px) {
    .fav-page {
        padding: 50px 28px !important;
    }

    .bookings-page{
        padding: 50px 28px !important;
    }
}



@media (max-width: 400px) {
    header {
        padding: 0 10px;
    }

    .pagination .page-item:last-child .page-link{
        padding: 9px 14px!important;
    }

    .pagination .page-item:first-child .page-link{
        padding: 9px 14px!important;
    }

    .pagination .page-item .page-link{
        padding: 9px 14px!important;
    }

    .btn-mobile-user{
        padding: 5px 6px;
    }

    #langSelected span {
        font-size: 12px;
    }

    header {
        padding: 0 10px !important;
    }
}

@media (max-width: 365px) {
    header {
        padding: 0 5px !important;
    }
}



@media (max-width: 900px) {
    /*header {*/
    /*    padding: 0 28px;*/
    /*}*/

    /*nav, .header-right .lang-switch, .btn-login, .btn-register {*/
    /*    display: none;*/
    /*}*/

    /*.hamburger {*/
    /*    display: flex;*/
    /*}*/

    .hero {
        grid-template-columns:1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 60px 28px 60px;
    }

    .hero-right {
        padding: 48px 28px;
    }

    .how-works, .books-preview, .ambassadors, .donate-strip {
        padding: 64px 28px;
    }

    .steps {
        grid-template-columns:1fr;
        gap: 32px;
    }

    .steps::before {
        display: none;
    }

    .books-grid, .full-books-grid, .fav-books-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    .ambassador-grid, .amb-top-three {
        grid-template-columns:1fr;
    }

    .events-layout {
        grid-template-columns:1fr;
        display: block;
    }



    .donate-strip, .donate-layout {
        grid-template-columns:1fr;
    }

    .about-grid {
        grid-template-columns:1fr;
    }

    .about-photo {
        /*aspect-ratio: 2/1;*/
        /*max-height: 300px;*/
    }



    .home_img img{
        /*max-width: 40%;*/
        padding-top: 0;
    }




    .stats {
        grid-template-columns:repeat(2, 1fr);
        padding: 40px 24px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .page-hero-inner, .events-body, .donate-body, .ambassadors-body, .books-main, .library-search-row, .fav-books-section, .about-body {
        padding-left: 28px;
        padding-right: 28px;
    }

    .library-controls, .library-search-row {
        padding-left: 28px;
        padding-right: 28px;
    }

    footer {
        padding: 48px 28px 28px;
    }

    .footer-top {
        grid-template-columns:1fr;
        gap: 28px;
    }

    .all-amb-grid {
        grid-template-columns:1fr;
    }

    .events-strip {
        padding: 12px 24px;
    }

    .sidebar-card .pagination{
        justify-content: center;
    }
}

@media (max-width: 580px) {
    .book-author {
        width: 100%;
        min-height: 35px;
    }

    .book-info {
        padding: 18px 10px 18px;
    }
}

@media (max-width: 540px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-quote {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-primary, .hero-actions .btn-ghost-light {
        justify-content: center;
    }

    .books-grid, .full-books-grid, .fav-books-grid {
        grid-template-columns:repeat(2, 1fr);
    }

    .stat-num {
        font-size: 36px;
    }

    .donate-form-card {
        padding: 28px 20px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date-col {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 16px 20px;
    }
}

@media (max-width: 360px) {
    .event-card {
        flex-direction: column;
    }

    .event-date-col {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        padding: 12px 16px;
        align-items: center;
    }

    .event-day {
        font-size: 24px;
    }

    .event-month {
        font-size: 10px;
    }

    .event-body {
        padding: 14px 16px;
    }

    .event-title {
        font-size: 15px;
    }

    .event-desc {
        font-size: 12px;
    }

    .event-meta {
        flex-direction: column;
        gap: 6px;
    }

    .event-meta span {
        font-size: 11px;
    }

    .event-actions {
        padding: 0 16px 16px;
        width: 100%;
    }

    .event-actions .btn-primary {
        width: 100%;
        font-size: 13px;
        padding: 10px;
        justify-content: center;
    }

    .events-body {
        padding: 16px;
    }
}

/* ─────────────────────────────────────────── */

#ai-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1EA7B1;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(30, 167, 177, 0.4);
    transition: all 0.3s;
}

#ai-fab:hover {
    background: #17909a;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 167, 177, 0.5);
}

@media (min-width: 889px) and (max-width: 1200px) {
    .home_img {
        width: 30%
    }

    .home-about-values {
        width: calc(70% - 40px);


    }

    .value-pill{
        margin-left: 0!important;
    }
}

@media (max-width: 480px) {
    #ai-fab-label {
        display: none;
    }

    #ai-fab {
        padding: 14px;
        border-radius: 50%;
    }

    .ai_icon{
        padding: 0 4px!important;
    }

    .home_about_c{
        display: block;
    }

    .home-about-values{
        width: 100%;
    }

    .home_img{
        width: 30%;
        margin: 0 auto;
    }

}

#ai-overlay {
    display: none;
    position: fixed;
    /*inset: 0;*/
    z-index: 600;
    /*background: rgba(28, 28, 30, 0.45);*/
    /*backdrop-filter: blur(6px);*/
    /*align-items: flex-end;*/
    /*justify-content: flex-end;*/
    /*padding: 24px;*/
    bottom: 0;
    right: 20px;
}

#ai-overlay.open {
    display: flex;
}

#ai-panel {
    width: 100%;
    max-width: 420px;
    height: 580px;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 72px rgba(28, 28, 30, 0.22);
    animation: aiSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes aiSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#ai-header {
    background: #1a1a1a;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#ai-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

#ai-avatar {
    width: 38px;
    height: 38px;
    background: #1EA7B1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

#ai-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

#ai-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

#ai-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

#ai-close:hover {
    color: white;
}

#ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

#ai-messages::-webkit-scrollbar {
    width: 4px;
}

#ai-messages::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 2px;
}

.ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.ai-msg-bot {
    align-self: flex-start;
}

.ai-msg-user {
    align-self: flex-end;
}

.ai-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.75;
    font-family: 'DM Sans', sans-serif;
}

.ai-msg-bot .ai-bubble {
    background: #f5f5f5;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
}

.ai-msg-user .ai-bubble {
    background: #1EA7B1;
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-time {
    font-size: 10.5px;
    color: rgba(28, 28, 30, 0.28);
    margin-top: 4px;
    padding: 0 4px;
}

.ai-msg-user .ai-time {
    text-align: right;
}

.ai-book-rec {
    display: flex;
    gap: 10px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 6px;
    align-items: flex-start;
    transition: border-color 0.2s;
    cursor: pointer;
}

.ai-book-rec:hover {
    border-color: #1EA7B1;
}

.ai-book-num {
    width: 26px;
    height: 26px;
    background: #1EA7B1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ai-book-title {
    font-family: 'Playfair Display', serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
}

.ai-book-author {
    font-size: 11.5px;
    color: rgba(28, 28, 30, 0.42);
    margin-top: 1px;
}

.ai-book-why {
    font-size: 12px;
    color: #1EA7B1;
    margin-top: 4px;
    font-style: italic;
}

.ai-typing .ai-bubble {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 18px;
}

.ai-dot {
    width: 7px;
    height: 7px;
    background: #bbb;
    border-radius: 50%;
    animation: aiDot 1.2s infinite ease-in-out;
}

.ai-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiDot {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#ai-chips {
    padding: 10px 14px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}

#ai-chips::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    white-space: nowrap;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 100px;
    border: 1px solid #e0e0e0;
    background: none;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chip:hover {
    background: #1EA7B1;
    border-color: #1EA7B1;
    color: white;
}

#ai-input-row {
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #ebebeb;
    flex-shrink: 0;
}

#ai-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 100px;
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

#ai-input:focus {
    border-color: #1EA7B1;
    background: white;
}

#ai-send {
    width: 40px;
    height: 40px;
    background: #1EA7B1;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

#ai-send:hover {
    background: #17909a;
}

#ai-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 500px) {
    #ai-overlay {
        padding: 0;
        align-items: flex-end;
    }

    #ai-panel {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        height: 92vh;
    }

    .home_img img{
        max-width: 100%;
        padding-top: 0;
    }
}


.hidden {
    display: none;
}
#paginationLibrary{
    margin-top: 50px;
    justify-content: center;
}

.pagination {
    display: -ms-flexbox;
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.past_events_pagination{
    justify-content: center;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #f75454;
    background-color: #fff;
    border: 1px solid #eae8e4;
}

.page-link:hover {
    z-index: 2;
    color: #f30b0b;
    text-decoration: none;
    background-color: #fff6f6;
    border-color: #eae8e4;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(247, 84, 84, 0.25);
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #f75454;
    border-color: #f75454;
}

.page-item.disabled .page-link {
    color: #7f7f83;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #eae8e4;
}

.pagination-lg .page-link {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link {
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.pagination-lg .page-item:last-child .page-link {
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
}

.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pagination-sm .page-item:first-child .page-link {
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
}

.pagination-sm .page-item:last-child .page-link {
    border-top-right-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

.pagination .page-item {
    margin: 0 5.5px;
}

.pagination .page-item:first-child {
    margin-left: 0;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: .65rem 1.25rem;
}

.pagination .page-item:last-child {
    margin-right: 0;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: .65rem 1.09rem;
}

.pagination .page-item .page-link {
    color: #161619;
    padding: .65rem .99rem;
}

.pagination .page-item .page-link:hover {
    background-color: #161619;
    border-color: #161619;
    color: #fff !important;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff !important;
    background-color: #161619;
    border-color: #161619;
}

.amb-top-card:hover {
    border-top: 3px solid var(--gold);
}

.center_content{
    padding: 0px 63px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.library-search-row{
    padding-top: 30px;
}

.ambassador_img{
    width: 100%;
    border-radius: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.footer_logo{
    max-width: 170px;
}

/*.bookings-sidebar {*/
/*    padding-top: 50px;*/
/*}*/

.main_logo{
    max-width: 110px;
    padding-top: 8px;
}

.error_messages_content{
    padding-bottom: 20px;
}

.alert-primary {
    color: #802c2c;
    background-color: #fddddd;
    border-color: #fdcfcf;
    padding: 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.js-form-message .error {
    font-size: 13px;
    color: #f75454;
    padding-top: 2px;
}

.js-form-message.has_error input {
    border-color: #f75454;
}

.alert-success {
    color: #476c00;
    background-color: #e7f5cc;
    border-color: #def2b8;
    padding: 15px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    margin-bottom: 7px;
}

.empty{
    margin-bottom: 60px;
}

@media (max-width: 550px) {
    .chat-header{
        width: 100%;
    }

    .chat_bottom{
        width: 100%;
    }
}






@media (max-width: 768px) {


    #ai-overlay {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100dvh;
        z-index: 600;
    }

    .chat-wrapper {
        width: 100% !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    /* Header stays compact */
    .chat-header {
        padding: 10px;
    }

    .header-name {
        font-size: 14px;
    }

    .header-sub {
        font-size: 12px;
    }

    /* Messages scroll properly */
    .messages {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    /* Fix message bubbles */
    .bubble {
        max-width: 85%;
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
    }

    /* Bottom input always visible */
    .chat_bottom {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 8px;
    }

    /* Input field */
    .chat-input {
        font-size: 16px; /* prevents iOS zoom */
    }

    /* Buttons easier to tap */
    .send-btn,
    .header-close {
        min-width: 44px;
        min-height: 44px;
    }

    /* Genre scroll fix */
    .genres {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 5px;
    }

    .genre-pill {
        flex: 0 0 auto;
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .chat-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        right: 0!important;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width: 400px) {

    html, body {
        overflow-x: hidden;
    }

    .chat-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

}

@supports (height: 100dvh) {
    .chat-wrapper {
        height: 100dvh;
    }
}

.star_icon_a{
    color: goldenrod;
}

.heart_icon{
    font-size: 10px!important;
}

.amb-avatar{
    margin: 0 auto 16px;
}
