/* Base styles */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Theme: Light (default) and Dark overrides */
:root {
    --bg-body: #f9fafb; /* gray-50 */
    --bg-surface: #ffffff;
    --text-primary: #111827; /* gray-900 */
    --text-secondary: #4b5563; /* gray-600 */
    --border-color: #e5e7eb; /* gray-200 */
}

/* Apply base tokens */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Dark mode: use .dark on <html> */
.dark body {
    --bg-body: #0b1220; /* deep slate */
    --bg-surface: #0f172a; /* slate-900 */
    --text-primary: #e5e7eb; /* gray-200 */
    --text-secondary: #cbd5e1; /* slate-300 */
    --border-color: #1f2937; /* gray-800 */
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Common utility overrides for Tailwind-like classes in dark mode */
.dark .bg-white { background-color: var(--bg-surface) !important; }
.dark .bg-gray-50 { background-color: var(--bg-body) !important; }
.dark .text-gray-800,
.dark .text-gray-700 { color: var(--text-primary) !important; }
.dark .text-gray-600,
.dark .text-gray-500,
.dark .text-gray-400,
.dark .text-gray-300 { color: var(--text-secondary) !important; }
.dark .border-gray-100,
.dark .border-gray-200 { border-color: var(--border-color) !important; }
.dark .shadow-md,
.dark .shadow-lg,
.dark .shadow-xl { box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important; }

/* Header and navigation in dark */
.dark header.bg-white { background-color: rgba(2, 6, 23, 0.9) !important; /* slate-950/90 */ }
.dark .nav-link { color: var(--text-secondary); }
.dark .nav-link:hover,
.dark .nav-link.active { color: #60a5fa; }
.dark #mobile-menu.bg-white { background-color: var(--bg-surface) !important; }
.dark .mobile-nav-link { color: var(--text-secondary); border-bottom-color: var(--border-color); }
.dark .mobile-nav-link:hover,
.dark .mobile-nav-link.active { color: #60a5fa; }

/* Buttons in dark */
.dark .btn-white {
    background-color: #111827; /* gray-900 */
    color: #93c5fd; /* blue-300 */
    border: 1px solid #334155; /* slate-700 */
}
.dark .btn-white:hover {
    background-color: #0b1220;
}

/* Forms in dark */
.dark input,
.dark textarea,
.dark select {
    background-color: #0b1220;
    color: var(--text-primary);
    border: 1px solid #334155;
}
.dark ::placeholder { color: #94a3b8; }

/* Cards/sections that rely on white backgrounds */
.dark .bg-gradient-to-br.from-blue-50.to-blue-100,
.dark .bg-gradient-to-br.from-green-50.to-green-100,
.dark .bg-gradient-to-br.from-purple-50.to-purple-100,
.dark .bg-gradient-to-b.from-blue-50.to-white,
.dark .bg-white\/20 { /* keep translucent cards readable */
    backdrop-filter: saturate(120%) blur(6px);
}

/* Marquee text contrast in dark */
.dark marquee { color: var(--text-primary); }

/* Theme toggle button */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
    color: #4b5563;
    transition: all 0.2s ease;
}
.theme-toggle:hover { background-color: #f3f4f6; }
.dark .theme-toggle { color: #cbd5e1; border-color: #334155; }
.dark .theme-toggle:hover { background-color: #111827; }

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #2563eb, #10b981);
    transition: width 0.1s ease-out;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 20px rgba(37,99,235,0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
#back-to-top:hover { background: #1d4ed8; }
.dark #back-to-top { background: #1e293b; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.dark #back-to-top:hover { background: #0f172a; }

/* Quick Actions Speed Dial */
.quick-actions {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9998;
}
.quick-actions .fab {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #16a34a);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.quick-actions .fab:hover { transform: translateY(-2px) scale(1.03); }
.quick-actions .menu {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.quick-actions.open .menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.quick-actions .menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.quick-actions .menu a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* Modern Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: zoom-in; /* Show zoom cursor over combined logos */
}

.logo-container:hover {
    transform: translateY(-1px);
}

/* When hovering anywhere on the logo container, gently zoom all logo images */
.logo-container:hover .logo-img {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.logo-img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-img:hover {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.logo-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 25%, #1e40af 50%, #3b82f6 75%, #2563eb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease infinite;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.logo-text:hover {
    transform: scale(1.05);
    animation-duration: 1s;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ================= Publication & Indexing Enhanced Block ================= */
.pub-block { perspective: 2000px; }
.pub-block:hover .pub-surface { transform: translateY(-4px) rotateX(3deg) rotateY(-2deg); box-shadow: 0 18px 48px -12px rgba(15,23,42,.25), 0 0 0 1px rgba(255,255,255,0.4) inset; }
.pub-surface { transition: transform .9s cubic-bezier(.19,1,.22,1), box-shadow .6s ease; }
.pub-glow { position:absolute; inset:-3px; border-radius:28px; background:conic-gradient(from 120deg at 50% 50%, #2563eb, #6366f1, #10b981, #2563eb); filter:blur(22px); opacity:.18; animation: pubGlow 8s linear infinite; }
@keyframes pubGlow { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }
.pub-noise { background-image:radial-gradient(circle at 25% 30%,rgba(255,255,255,0.7) 0,rgba(255,255,255,0) 60%), repeating-linear-gradient(45deg,rgba(0,0,0,.04) 0,rgba(0,0,0,.04) 2px,transparent 2px,transparent 6px); }
.pub-orb { position:absolute; width:140px; height:140px; border-radius:50%; background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.9),rgba(59,130,246,.45)); filter:blur(4px) saturate(140%); opacity:.25; mix-blend-mode:overlay; animation: floatOrb 10s ease-in-out infinite; }
.pub-orb.orb-a { top:-30px; left:-30px; animation-delay:-2s; }
.pub-orb.orb-b { bottom:-40px; right:-40px; background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.85),rgba(16,185,129,.5)); animation-delay:1s; }
@keyframes floatOrb { 0%,100% { transform:translate3d(0,0,0) scale(1);} 50% { transform:translate3d(20px,10px,0) scale(1.08);} }
.animate-pulse-slow { animation: pulseSlow 3.6s ease-in-out infinite; }
@keyframes pulseSlow { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.pub-badge { position:relative; display:flex; align-items:center; padding:.75rem .95rem; border-radius:14px; background:linear-gradient(135deg,#fff,#f8fafc); border:1px solid #e2e8f0; color:#334155; box-shadow:0 4px 12px -4px rgba(15,23,42,.08); transition:all .4s cubic-bezier(.4,0,.2,1); }
.pub-badge i { font-size:.95rem; }
.pub-badge:hover { transform:translateY(-4px); background:linear-gradient(135deg,#ffffff,#eef2ff); box-shadow:0 10px 32px -8px rgba(30,41,59,.25); }
.badge-scopus { border-color:#60a5fa; }
.badge-scholar { border-color:#818cf8; }
.badge-ei { border-color:#34d399; }
.badge-scimago { border-color:#c084fc; }
.pub-mini { display:flex; align-items:flex-start; gap:.85rem; padding:1rem 1.1rem; background:linear-gradient(145deg,#ffffff,#f1f5f9); border:1px solid #e2e8f0; border-radius:18px; box-shadow:0 6px 20px -10px rgba(15,23,42,.25); position:relative; overflow:hidden; transition:all .5s cubic-bezier(.19,1,.22,1); }
.pub-mini::after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(59,130,246,.08),rgba(99,102,241,.08),rgba(16,185,129,.08)); opacity:0; transition:opacity .5s; }
.pub-mini:hover { transform:translateY(-6px) scale(1.02); box-shadow:0 16px 44px -14px rgba(30,41,59,.35); }
.pub-mini:hover::after { opacity:1; }
.pub-mini-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:14px; font-size:1.05rem; box-shadow:0 4px 10px -2px rgba(15,23,42,.25); backdrop-filter:blur(4px); }
.pub-cta { background:linear-gradient(135deg,#2563eb,#6366f1,#10b981); color:#fff; box-shadow:0 8px 24px -6px rgba(30,41,59,.35); transition:all .5s cubic-bezier(.19,1,.22,1); position:relative; overflow:hidden; }
.pub-cta::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,0)); transform:translateX(-100%); transition:transform 1s ease; }
.pub-cta:hover::before { transform:translateX(100%); }
.pub-cta:hover { transform:translateY(-4px); box-shadow:0 18px 48px -12px rgba(30,41,59,.45); }
.pub-image { transition:transform .6s cubic-bezier(.19,1,.22,1), filter .6s ease; }
.pub-image:hover { transform:translateY(-6px) scale(1.04); filter:drop-shadow(0 14px 32px rgba(15,23,42,.35)); }
@media (max-width: 640px){
    .pub-mini { padding:.85rem .95rem; }
    .pub-mini-icon { width:38px; height:38px; }
    .pub-badge { padding:.6rem .75rem; }
}
@media (prefers-reduced-motion: reduce){
    .pub-block:hover .pub-surface { transform:none; }
    .pub-glow, .pub-orb, .animate-pulse-slow { animation:none !important; }
}

/* Modern publication panel refinements */
.publication-panel .badge-soft { display:inline-flex; align-items:center; padding:4px 10px; border-radius:9999px; background:linear-gradient(145deg,#f1f5f9,#ffffff); border:1px solid #e2e8f0; box-shadow:0 2px 4px -2px rgba(15,23,42,.15); transition:background .3s, transform .4s; }
.publication-panel .badge-soft:hover { background:#f8fafc; transform:translateY(-2px); }
.publication-panel .index-chip { display:flex; align-items:center; padding:.75rem .9rem; border-radius:14px; background:linear-gradient(135deg,#ffffff,#f8fafc); border:1px solid #e2e8f0; color:#334155; box-shadow:0 4px 10px -6px rgba(15,23,42,.18); position:relative; overflow:hidden; transition:all .45s cubic-bezier(.4,0,.2,1); }
.publication-panel .index-chip::before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(59,130,246,.08),rgba(99,102,241,.08),rgba(16,185,129,.08)); opacity:0; transition:opacity .45s; }
.publication-panel .index-chip:hover { transform:translateY(-5px); box-shadow:0 14px 34px -10px rgba(15,23,42,.28); }
.publication-panel .index-chip:hover::before { opacity:1; }
.publication-panel .index-chip i { color:#2563eb; }
.publication-panel .index-chip:nth-child(2) i { color:#4f46e5; }
.publication-panel .index-chip:nth-child(3) i { color:#059669; }
.publication-panel .index-chip:nth-child(4) i { color:#7e22ce; }

/* ===== Additional modern enhancements for Publisher & Indexing section ===== */
.pub-header-chip { display:inline-flex; align-items:center; gap:.5rem; padding:.45rem .85rem; border-radius:9999px; font-size:.675rem; letter-spacing:.05em; text-transform:uppercase; font-weight:600; background:linear-gradient(120deg,#1e3a8a,#2563eb,#10b981); color:#fff; box-shadow:0 4px 10px -4px rgba(30,58,138,.4); }
.pub-gradient-ring { position:relative; }
.pub-gradient-ring::before { content:""; position:absolute; inset:-2px; border-radius:inherit; padding:2px; background:linear-gradient(140deg,#2563eb,#6366f1,#10b981,#2563eb); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.9; }
.pub-badge-row { display:flex; flex-wrap:wrap; gap:.65rem; justify-content:center; }
.pub-badge.alt { background:linear-gradient(145deg,#f8fafc,#ffffff); border:1px solid #dbe2ea; }
.pub-kpis { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); margin-top:1.25rem; }
.pub-kpi { position:relative; padding:1rem .95rem; border-radius:18px; background:linear-gradient(135deg,#ffffff,#f1f5f9); border:1px solid #e2e8f0; box-shadow:0 6px 18px -8px rgba(15,23,42,.18); overflow:hidden; transition:all .45s cubic-bezier(.4,0,.2,1); }
.pub-kpi:before { content:""; position:absolute; inset:0; background:linear-gradient(120deg,rgba(59,130,246,.08),rgba(99,102,241,.08),rgba(16,185,129,.08)); opacity:0; transition:opacity .45s; }
.pub-kpi:hover { transform:translateY(-6px); box-shadow:0 14px 38px -12px rgba(15,23,42,.32); }
.pub-kpi:hover:before { opacity:1; }
.pub-kpi h4 { font-size:.65rem; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#475569; margin-bottom:.35rem; }
.pub-kpi .kpi-value { font-size:1.5rem; font-weight:700; background:linear-gradient(90deg,#2563eb,#6366f1,#0ea5e9); -webkit-background-clip:text; background-clip:text; color:transparent; letter-spacing:-.02em; }
.pub-steps { display:grid; gap:.9rem; margin-top:1.75rem; }
@media (min-width:640px){ .pub-steps { grid-template-columns:repeat(5,1fr);} }
.pub-step { position:relative; padding:.85rem .75rem; border-radius:16px; background:linear-gradient(145deg,#ffffff,#f1f5f9); border:1px solid #e2e8f0; display:flex; flex-direction:column; align-items:flex-start; gap:.4rem; min-height:110px; box-shadow:0 4px 14px -6px rgba(15,23,42,.18); transition:all .45s; }
.pub-step:hover { transform:translateY(-6px) scale(1.02); box-shadow:0 18px 34px -12px rgba(30,41,59,.35); }
.pub-step .step-index { width:34px; height:34px; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:.95rem; border-radius:12px; background:linear-gradient(135deg,#2563eb,#6366f1); color:#fff; box-shadow:0 4px 10px -4px rgba(59,130,246,.55); }
.pub-step:nth-child(2) .step-index { background:linear-gradient(135deg,#6366f1,#8b5cf6); }
.pub-step:nth-child(3) .step-index { background:linear-gradient(135deg,#10b981,#059669); }
.pub-step:nth-child(4) .step-index { background:linear-gradient(135deg,#f59e0b,#d97706); }
.pub-step:nth-child(5) .step-index { background:linear-gradient(135deg,#6d28d9,#7e22ce); }
.pub-step h5 { font-size:.8rem; font-weight:600; color:#1e293b; letter-spacing:.02em; }
.pub-step p { font-size:.65rem; line-height:1.15rem; color:#64748b; }
.pub-cta-bar { display:flex; flex-wrap:wrap; gap:.85rem; margin-top:2rem; }
.pub-cta-btn { position:relative; display:inline-flex; align-items:center; gap:.55rem; font-weight:600; border-radius:14px; padding:.9rem 1.35rem; letter-spacing:.02em; box-shadow:0 6px 18px -6px rgba(30,41,59,.35); transition:all .45s; overflow:hidden; }
.pub-cta-btn-primary { background:linear-gradient(135deg,#2563eb,#6366f1,#10b981); color:#fff; }
.pub-cta-btn-primary:before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.25),rgba(255,255,255,0)); transform:translateX(-100%); transition:transform 1s; }
.pub-cta-btn-primary:hover:before { transform:translateX(100%); }
.pub-cta-btn-primary:hover { transform:translateY(-4px); box-shadow:0 16px 40px -10px rgba(37,99,235,.55); }
.pub-cta-btn-outline { background:linear-gradient(145deg,#ffffff,#f1f5f9); color:#1e40af; border:1px solid #93c5fd; }
.pub-cta-btn-outline:hover { transform:translateY(-4px); box-shadow:0 12px 32px -10px rgba(30,41,59,.28); background:linear-gradient(145deg,#f8fafc,#ffffff); }
.pub-disclaimer { font-size:.6rem; letter-spacing:.04em; text-transform:uppercase; color:#64748b; margin-top:1.25rem; }
.pub-divider { height:1px; width:100%; background:linear-gradient(90deg,rgba(59,130,246,.15),rgba(99,102,241,.15),rgba(16,185,129,.15)); margin:1.75rem 0 1.5rem; }



/* Enhanced header logo */
.header-logo {
    position: relative;
}

.header-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-logo:hover::before {
    opacity: 1;
}

/* Enhanced footer logo (refined for professional balanced sizing) */
.footer-logo {
    position: relative;
    padding: 12px 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 4px 14px -2px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.footer-logo:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(255,255,255,0.28);
    box-shadow: 0 10px 40px -8px rgba(0,0,0,0.55), 0 0 0 1px rgba(37,99,235,0.35) inset;
}

.footer-logo-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.05));
    padding: 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
    transition: transform .5s cubic-bezier(.19,1,.22,1), filter .5s ease;
}
.footer-logo-mark:hover { transform: translateY(-3px) scale(1.06) rotate(.5deg); filter: drop-shadow(0 12px 28px rgba(0,0,0,0.55)); }

@media (max-width: 640px) {
  .footer-logo { flex-direction: column; text-align: center; padding: 16px 18px; }
  .footer-logo-mark { width: 56px; height:56px; margin-bottom: 4px; }
}

/* Navigation styles */
.nav-link {
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.nav-link:hover, .nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 10px 0;
    color: #4b5563;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #2563eb;
}

/* Hero slider styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 70vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #2563eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #fff;
    color: #1d4ed8;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #fff;
}

/* Button styles */
.btn-white {
    display: inline-block;
    background-color: white;
    color: #2563eb;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: white;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Animation for gradient text */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-to-r {
    background-size: 200% 200%;
    animation: gradient 5s ease infinite;
}

/* Footer Styles */
.footer-link {
    color: #d1d5db; /* gray-300 */
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-icon {
    margin-right: 0.75rem; /* mr-3 */
    color: #fde68a; /* yellow-300 */
}

.footer-heading {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #fde68a; /* yellow-300 */
    margin-bottom: 1rem; /* mb-4 */
    display: flex;
    align-items: center;
}

.footer-section {
    border-top: 1px solid #2563eb; /* blue-600 */
    margin-bottom: 2rem; /* mb-8 */
}

.footer-social-icon {
    color: #ffffff;
    transition: color 0.2s ease;
}
.footer-social-icon:hover { color: #fde68a; }

/* Footer partner image */
.footer-partner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-partner-wrap img.footer-partner-logo {
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
    transition: transform .3s ease, filter .3s ease;
}

.footer-partner-wrap img.footer-partner-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}

@media (max-width: 640px) {
    .footer-partner-wrap img.footer-partner-logo {
        max-height: 54px;
    }
}

/* Inline partner image beneath footer branding */
.footer-partner-inline {
    max-width: 190px;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0.5rem; /* mt-2 */
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
    transition: transform .3s ease, filter .3s ease;
}
.footer-partner-inline:hover { transform: scale(1.04); filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }

@media (max-width: 640px) {
    .footer-partner-inline { max-width: 150px; }
}

/* Partner image shown before (beside) footer text */
.footer-partner-face {
    width: 300px; /* requested fixed width */
    height: 280px; /* requested fixed height */
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
    transition: transform .3s ease, filter .3s ease;
}
.footer-partner-face:hover { transform: scale(1.05); filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }
@media (max-width: 640px) { .footer-partner-face { width: 210px; height: 196px; } }

/* Floating partner image placed outside footer-logo frame */
.footer-brand-group { display:flex; align-items:center; }
@media (max-width: 640px){ .footer-brand-group { flex-direction:column; } }

/* Partner illustrative image refined */
.footer-partner-floating {
    height: 120px; /* consistent professional band */
    width: auto;
    max-width: 340px;
    object-fit: contain;
    margin-left: 2rem;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
    transition: transform .45s cubic-bezier(.19,1,.22,1), filter .45s ease, opacity .4s ease;
    opacity: .92;
}
.footer-partner-floating:hover { transform: translateY(-4px) scale(1.05); opacity: 1; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); }
@media (min-width: 1024px){ .footer-partner-floating { height: 140px; } }
@media (max-width: 768px){ .footer-partner-floating { margin-left: 1rem; height: 110px; } }
@media (max-width: 640px){
    .footer-partner-floating { margin-left:0; margin-top:1.25rem; height: 90px; }
}

/* Dark mode subtle adjustments */
.dark .footer-logo { border-color: rgba(255,255,255,0.12); background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); }
.dark .footer-logo:hover { background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)); }
.dark .footer-logo-mark { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); }

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .header-logo .logo-img {
        height: 2.25rem;
    }
}

@media (max-width: 640px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .header-logo .logo-img {
        height: 2rem;
    }
}
