:root {
    --gold: #c5a059;
    --gold-gradient: linear-gradient(135deg, #c5a059, #f7dfa1, #b08d4a);
    --brand-green: #10b981;
    --emerald-deep: #064e3b;
    --emerald-mid: #059669;
    --lux-dark: #0f172a;
    --lux-slate: #f1f5f9;
    /* Clean modern slate */
    --lux-gray: #475569;
    --lux-white: #ffffff;
}

.cert-v3-root {
    font-family: 'Outfit', sans-serif;
    color: var(--lux-dark);
    background-color: var(--lux-slate);
}

.serif-gold-v3 {
    font-family: 'Playfair Display', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-weight: 700;
}

/* --- HERO SECTION --- */
.hero-v3 {
    height: 60vh;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('/images/History/bg.webp') center/cover no-repeat;
    margin-bottom: 0;
}

.hero-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(6, 78, 59, 1) 100%);
    z-index: 1;
}

.hero-v3 .container {
    position: relative;
    z-index: 2;
}

.hero-v3 h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-v3 p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- INTRO SECTION --- */
.intro-v3 {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.intro-card-v3 {
    background: white;
    padding: 60px;
    border-radius: 50px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.12);
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.intro-card-v3 h2 {
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro-card-v3 p {
    color: var(--lux-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- NAVIGATION BUTTONS --- */
.hall-ctrl-v3 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--emerald-deep);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hall-ctrl-v3:hover {
    background: var(--brand-green);
    color: white;
    transform: translateY(-50%) scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}

.hall-prev-v3 {
    left: 30px;
}

.hall-next-v3 {
    right: 30px;
}

.hall-prev-v3 {
    left: 25px;
}

.hall-next-v3 {
    right: 25px;
}

/* --- SLIDER SECTION --- */
.slider-v3-section {
    padding: 60px 0;
}

.hall-slider-v3 {
    max-width: 1000px;
    margin: 0 auto;
    height: 500px;
    background: white;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--lux-shadow);
    border: 10px solid white;
}

.hall-slide-v3 {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.hall-slide-v3.active {
    opacity: 1;
    z-index: 2;
}

.hall-slide-v3 img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.hall-overlay-v3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    text-align: center;
}

/* --- CLASSICAL EXCELLENCE GRID --- */
.grid-v3-section {
    padding: 100px 0 160px;
    background: #ffffff;
}

.cert-premium-card {
    background: #ffffff;
    border-radius: 0;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.5s ease;
}

.cert-premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.05);
}

.cert-frame {
    padding: 10px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-bottom: 30px;
}

.cert-img-wrap {
    width: 100%;
    height: 220px;
    /* Reduced from 300px for compactness */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.cert-actual-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.8s ease;
}

.cert-premium-card:hover .cert-actual-img {
    transform: scale(1.05);
}

.cert-verified-seal {
    position: absolute;
    top: 20px;
    left: -100px;
    /* Hidden initially */
    background: rgba(6, 78, 59, 0.95);
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    transition: 0.4s ease;
    z-index: 10;
}

.cert-premium-card:hover .cert-verified-seal {
    left: 20px;
}

.cert-info {
    padding: 5px;
    text-align: center;
}

.cert-category-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.cert-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    /* Slightly smaller to save space */
    font-weight: 900;
    /* Extra bold as requested */
    color: var(--lux-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.cert-divider {
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.cert-desc {
    color: var(--lux-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.btn-cert-view {
    background: transparent;
    color: var(--lux-dark);
    border: 2px solid var(--lux-dark);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s;
    cursor: pointer;
    margin: 0 auto;
}

.btn-cert-view:hover {
    background: var(--emerald-deep);
    border-color: var(--emerald-deep);
    color: #fff;
    padding-right: 40px;
}

.btn-cert-view i {
    transition: 0.3s;
}

.btn-cert-view:hover i {
    transform: translateX(10px);
}

.cert-id-badge {
    pointer-events: none;
    border: 2px solid var(--lux-dark);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--lux-dark);
}

/* --- MODAL V3 --- */
.modal-v3-container .modal-content {
    border-radius: 50px;
    border: none;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.25);
}

.modal-v3-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    min-height: 600px;
}

.modal-v3-img {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.modal-v3-img img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.modal-v3-text {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-v3-text h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--lux-dark);
}

.modal-v3-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--lux-gray);
    margin-bottom: 30px;
}

.list-v3-neat {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.list-v3-neat li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    align-items: flex-start;
}

.list-v3-neat i {
    color: var(--emerald);
    background: rgba(197, 160, 89, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    margin-top: 2px;
}

.btn-v3-pdf {
    background: var(--lux-dark);
    color: white;
    padding: 18px 35px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    border: none;
}

.btn-v3-pdf:hover {
    background: var(--emerald-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.close-v3-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    cursor: pointer;
    transition: 0.3s;
}

.close-v3-btn:hover {
    transform: rotate(90deg);
    color: var(--lux-green);
}

/* =========================================================
   CONSOLIDATED CERTIFICATIONS MOBILE STYLES (Max-Width: 991px)
   ========================================================= */
