/* ===================================
   GyanRank Brand Design System v4.0
   Premium Educational Platform Branding
   =================================== */

/* ========== Brand Variables ========== */
:root {
    --gr-primary: #667eea;
    --gr-primary-dark: #5a6fd6;
    --gr-secondary: #764ba2;
    --gr-accent: #f97316;
    --gr-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gr-gradient-hover: linear-gradient(135deg, #5a6fd6 0%, #6a3f92 100%);
    --gr-gradient-light: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    --gr-success: #10b981;
    --gr-info: #3b82f6;
    --gr-warning: #f59e0b;
    --gr-danger: #ef4444;
    --gr-dark: #0f172a;
    --gr-body-bg: #f8fafc;
    --gr-text: #1e293b;
    --gr-text-muted: #64748b;
    --gr-border: #e2e8f0;
    --gr-radius: 16px;
    --gr-radius-sm: 10px;
    --gr-radius-lg: 24px;
    --gr-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    --gr-shadow-md: 0 8px 30px rgba(102, 126, 234, 0.12);
    --gr-shadow-lg: 0 16px 48px rgba(102, 126, 234, 0.18);
    --gr-shadow-glow: 0 0 30px rgba(102, 126, 234, 0.25);
    --gr-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Body ========== */
.gr-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gr-body-bg);
    color: var(--gr-text);
    -webkit-font-smoothing: antialiased;
}

/* ========== Top Bar ========== */
.gr-topbar {
    background: var(--gr-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 6px 0;
    letter-spacing: 0.2px;
}
.gr-topbar-social {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--gr-transition);
}
.gr-topbar-social:hover {
    color: var(--gr-primary);
}

/* ========== Navbar ========== */
.gr-navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    z-index: 1050;
    transition: var(--gr-transition);
}

.gr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.gr-logo {
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
    transition: var(--gr-transition);
}
.gr-brand:hover .gr-logo {
    transform: scale(1.02);
}
.gr-brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gr-dark);
    letter-spacing: -0.5px;
}
.gr-brand-accent {
    background: var(--gr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gr-toggler {
    border: 2px solid var(--gr-primary) !important;
    border-radius: var(--gr-radius-sm);
    padding: 8px 12px;
    color: var(--gr-primary);
    font-size: 1.4rem;
    transition: var(--gr-transition);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    outline: none;
}
.gr-toggler:active {
    background: var(--gr-gradient);
    color: white;
    border-color: transparent !important;
}
.gr-toggler .bi-list {
    font-size: 1.5rem;
    line-height: 1;
}

.gr-nav-link {
    font-weight: 600 !important;
    font-size: 0.92rem;
    color: var(--gr-text) !important;
    padding: 8px 16px !important;
    border-radius: var(--gr-radius-sm);
    transition: var(--gr-transition);
    position: relative;
}
.gr-nav-link:hover,
.gr-nav-link.active {
    color: var(--gr-primary) !important;
    background: var(--gr-gradient-light);
}
.gr-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gr-gradient);
    border-radius: 3px;
}

/* ========== Buttons ========== */
.gr-btn-primary {
    background: var(--gr-gradient) !important;
    color: white !important;
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
    transition: var(--gr-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gr-btn-primary:hover {
    background: var(--gr-gradient-hover) !important;
    box-shadow: var(--gr-shadow-glow);
}
.gr-btn-glow {
    animation: gr-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes gr-glow-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.5); }
}

.gr-btn-outline {
    background: transparent;
    color: var(--gr-primary);
    border: 2px solid var(--gr-primary);
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--gr-transition);
    text-decoration: none;
}
.gr-btn-outline:hover {
    background: var(--gr-gradient);
    color: white;
    border-color: transparent;
}

.gr-btn-white {
    background: white;
    color: var(--gr-primary);
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--gr-transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
}
.gr-btn-white:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    color: var(--gr-secondary);
}

/* ========== Dropdown ========== */
.gr-dropdown {
    border: none !important;
    box-shadow: var(--gr-shadow-md) !important;
    border-radius: var(--gr-radius) !important;
    padding: 8px !important;
    margin-top: 8px !important;
    animation: gr-dropdown-in 0.2s ease;
}
.gr-dropdown .dropdown-item {
    border-radius: var(--gr-radius-sm);
    font-weight: 500;
    transition: var(--gr-transition);
}
.gr-dropdown .dropdown-item:hover {
    background: var(--gr-gradient-light);
}
@keyframes gr-dropdown-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Hero Section ========== */
.gr-hero {
    background: var(--gr-gradient);
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
}
.gr-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}
.gr-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gr-body-bg), transparent);
}
.gr-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    line-height: 1.15;
    letter-spacing: -1px;
}
.gr-hero-subtitle {
    color: rgba(255,255,255,0.92);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
}
.gr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

/* ========== Page Header (inner pages) ========== */
.gr-page-header {
    background: var(--gr-gradient);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.gr-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}
.gr-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
    position: relative;
}
.gr-page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    position: relative;
}

/* ========== Section Styles ========== */
.gr-section {
    padding: 80px 0;
}
.gr-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--gr-dark);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.gr-section-subtitle {
    color: var(--gr-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}
.gr-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gr-gradient-light);
    color: var(--gr-primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* ========== Cards ========== */
.gr-card {
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.06);
    border-radius: var(--gr-radius);
    box-shadow: var(--gr-shadow);
    transition: var(--gr-transition);
    overflow: hidden;
}
.gr-card:hover {
    box-shadow: var(--gr-shadow-md);
    border-color: rgba(102, 126, 234, 0.12);
}

.gr-feature-card {
    background: white;
    border-radius: var(--gr-radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.06);
    box-shadow: var(--gr-shadow);
    transition: var(--gr-transition);
    position: relative;
    overflow: hidden;
}
.gr-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gr-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.gr-feature-card:hover {
    box-shadow: var(--gr-shadow-md);
}
.gr-feature-card:hover::before {
    transform: scaleX(1);
}

.gr-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    transition: var(--gr-transition);
}
.gr-icon-box-primary { background: var(--gr-gradient); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3); }
.gr-icon-box-success { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.gr-icon-box-info { background: linear-gradient(135deg, #3b82f6, #1d4ed8); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.gr-icon-box-warning { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }
.gr-icon-box-danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }
.gr-icon-box-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }

.gr-feature-card:hover .gr-icon-box {
    transform: scale(1.05);
}

/* ========== Role Cards (For Institutes/Teachers/Students) ========== */
.gr-role-card {
    border-radius: var(--gr-radius-lg);
    overflow: hidden;
    transition: var(--gr-transition);
    border: none;
    box-shadow: var(--gr-shadow-md);
}
.gr-role-card:hover {
    box-shadow: var(--gr-shadow-lg);
}
.gr-role-card .card-body {
    padding: 36px 28px;
    color: white;
}
.gr-role-card .gr-role-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: var(--gr-transition);
}
.gr-role-card:hover .gr-role-icon {
    background: rgba(255,255,255,0.25);
}

/* ========== Institute Cards ========== */
.gr-institute-card {
    border-radius: var(--gr-radius-lg);
    overflow: hidden;
    transition: var(--gr-transition);
    border: 1px solid var(--gr-border);
    box-shadow: var(--gr-shadow);
    background: white;
}
.gr-institute-card:hover {
    box-shadow: var(--gr-shadow-md);
    border-color: var(--gr-primary);
}
.gr-institute-card .gr-inst-banner {
    height: 160px;
    object-fit: cover;
    width: 100%;
}
.gr-institute-card .gr-inst-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: -35px;
    position: relative;
    z-index: 2;
}
.gr-inst-stats {
    display: flex;
    gap: 8px;
}
.gr-inst-stat {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border-radius: var(--gr-radius-sm);
    background: var(--gr-gradient-light);
}
.gr-inst-stat .gr-stat-num {
    font-weight: 800;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
}

/* ========== Pricing Cards ========== */
.gr-pricing-card {
    border-radius: var(--gr-radius-lg);
    overflow: hidden;
    transition: var(--gr-transition);
    border: 2px solid var(--gr-border);
    box-shadow: var(--gr-shadow);
    background: white;
    position: relative;
}
.gr-pricing-card:hover {
    box-shadow: var(--gr-shadow-lg);
}
.gr-pricing-card.gr-popular {
    border-color: var(--gr-success);
    transform: scale(1.03);
    z-index: 2;
}
.gr-pricing-card.gr-popular:hover {
    transform: scale(1.03);
}
.gr-pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gr-danger);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gr-price {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

/* ========== Blog Cards ========== */
.gr-blog-card {
    background: white;
    border-radius: var(--gr-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: var(--gr-shadow);
    transition: var(--gr-transition);
    height: 100%;
}
.gr-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gr-shadow-lg);
}
.gr-blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gr-gradient-light);
}
.gr-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--gr-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.gr-blog-excerpt {
    color: var(--gr-text-muted);
    line-height: 1.7;
}
.gr-blog-hero {
    background: var(--gr-gradient);
    color: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--gr-shadow-lg);
}
.gr-blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 36%);
    pointer-events: none;
}
.gr-blog-article {
    background: white;
    border-radius: 28px;
    box-shadow: var(--gr-shadow-lg);
    overflow: hidden;
}
.gr-blog-article .gr-blog-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gr-dark);
}
.gr-blog-article .gr-blog-content h1,
.gr-blog-article .gr-blog-content h2,
.gr-blog-article .gr-blog-content h3,
.gr-blog-article .gr-blog-content h4,
.gr-blog-article .gr-blog-content h5,
.gr-blog-article .gr-blog-content h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-top: 1.6rem;
    margin-bottom: 0.8rem;
}
.gr-blog-article .gr-blog-content p {
    margin-bottom: 1rem;
}
.gr-blog-article .gr-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}
.gr-blog-article .gr-blog-content pre,
.gr-blog-article .gr-blog-content code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    overflow-x: auto;
}
.gr-blog-editor {
    min-height: 280px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========== Testimonials ========== */
.gr-testimonial-card {
    background: white;
    border-radius: 22px;
    border: 1px solid rgba(14, 116, 144, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    padding: 24px;
    transition: var(--gr-transition);
    position: relative;
    overflow: hidden;
}
.gr-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
}
.gr-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}
.gr-testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.gr-testimonial-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.gr-testimonial-text {
    color: #334155;
    line-height: 1.8;
    font-size: 0.98rem;
}

/* ========== Flow / Road Section ========== */
.gr-flow-section {
    position: relative;
    overflow: hidden;
}
.gr-flow-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0, transparent 28%),
        radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.08) 0, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.08) 0, transparent 28%);
    pointer-events: none;
}
.gr-road-flow {
    padding: 22px 0 8px;
}
.gr-road-path {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.85), rgba(255,255,255,0.85)) padding-box,
        linear-gradient(90deg, #cbd5e1, #e2e8f0) border-box;
    border: 2px solid transparent;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.06);
}
.gr-road-path::before {
    content: '';
    position: absolute;
    inset: 3px 8px;
    border-radius: inherit;
    background: repeating-linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.18) 0,
        rgba(59, 130, 246, 0.18) 18px,
        transparent 18px,
        transparent 38px
    );
    animation: roadFlow 2.8s linear infinite;
}
.gr-road-step {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(102, 126, 234, 0.10);
    border-radius: 26px;
    box-shadow: var(--gr-shadow-md);
    padding: 34px 26px 28px;
    text-align: center;
    min-height: 270px;
    backdrop-filter: blur(8px);
}
.gr-road-step::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -22px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 4px solid #cbd5e1;
    transform: translateX(-50%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
.gr-road-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--gr-shadow-lg);
}
.gr-road-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gr-gradient-light);
    color: var(--gr-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}
.gr-road-step-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 34px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.gr-road-step-primary { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gr-road-step-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gr-road-step-success { background: linear-gradient(135deg, #10b981, #059669); }
.gr-road-marker {
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 0;
    transform: translateY(-50%);
    pointer-events: none;
}
.gr-road-marker-dot {
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.14), 0 12px 24px rgba(239, 68, 68, 0.28);
    animation: roadMarker 6s linear infinite;
}

@keyframes roadFlow {
    from { background-position: 0 0; }
    to { background-position: 72px 0; }
}

@keyframes roadFlowVertical {
    from { background-position: 0 0; }
    to { background-position: 0 72px; }
}

@keyframes roadMarker {
    0% { left: 0%; transform: translateX(0) scale(1); }
    16% { left: 15%; transform: translateX(-50%) scale(1.05); }
    50% { left: 50%; transform: translateX(-50%) scale(1); }
    84% { left: 85%; transform: translateX(-50%) scale(1.05); }
    100% { left: 100%; transform: translateX(-100%) scale(1); }
}

@keyframes roadMarkerVertical {
    0% { top: 0%; transform: translateY(0) scale(1); }
    16% { top: 15%; transform: translateY(-50%) scale(1.05); }
    50% { top: 50%; transform: translateY(-50%) scale(1); }
    84% { top: 85%; transform: translateY(-50%) scale(1.05); }
    100% { top: 100%; transform: translateY(-100%) scale(1); }
}

/* ========== Stats Bar ========== */
.gr-stat-card {
    text-align: center;
    padding: 30px 20px;
}
.gr-stat-card .gr-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: white;
}
.gr-stat-card .gr-stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

/* ========== FAQ / Accordion ========== */
.gr-accordion .accordion-item {
    border: 1px solid var(--gr-border) !important;
    border-radius: var(--gr-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--gr-shadow);
}
.gr-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 18px 24px;
    border-radius: var(--gr-radius) !important;
    background: white;
    color: var(--gr-text);
}
.gr-accordion .accordion-button:not(.collapsed) {
    background: var(--gr-gradient);
    color: white;
    box-shadow: none;
}
.gr-accordion .accordion-button:not(.collapsed) i {
    color: white !important;
}
.gr-accordion .accordion-button:focus {
    box-shadow: none;
}
.gr-accordion .accordion-body {
    padding: 20px 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gr-text-muted);
}

/* ========== CTA Section ========== */
.gr-cta {
    background: var(--gr-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.gr-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

/* ========== Footer ========== */
.gr-footer {
    position: relative;
    margin-top: 0;
}
.gr-footer-main {
    background: var(--gr-dark);
    padding: 60px 0 20px;
    position: relative;
    border-top: 3px solid;
    border-image: var(--gr-gradient) 1;
}
.gr-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gr-footer-brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}
.gr-footer-desc {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    line-height: 1.7;
}
.gr-footer-heading {
    color: #93c5fd;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(147, 197, 253, 0.2);
    display: inline-block;
}
.gr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gr-footer-links li {
    margin-bottom: 10px;
}
.gr-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--gr-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.gr-footer-links a i {
    font-size: 0.7rem;
    transition: var(--gr-transition);
}
.gr-footer-links a:hover {
    color: #93c5fd;
    padding-left: 6px;
}
.gr-footer-links a:hover i {
    color: var(--gr-primary);
}

/* Footer Social Buttons */
.gr-footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.gr-social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    text-decoration: none;
    transition: var(--gr-transition);
    border: 2px solid transparent;
}
.gr-social-btn:hover {
    opacity: 0.9;
}
.gr-social-fb { background: rgba(24, 119, 242, 0.1); color: #1877f2; border-color: rgba(24, 119, 242, 0.3); }
.gr-social-fb:hover { background: #1877f2; color: white; box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4); }
.gr-social-yt { background: rgba(255, 0, 0, 0.1); color: #ff0000; border-color: rgba(255, 0, 0, 0.3); }
.gr-social-yt:hover { background: #ff0000; color: white; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }
.gr-social-li { background: rgba(0, 119, 181, 0.1); color: #0077b5; border-color: rgba(0, 119, 181, 0.3); }
.gr-social-li:hover { background: #0077b5; color: white; box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4); }
.gr-social-gh { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }
.gr-social-gh:hover { background: #fff; color: #000; box-shadow: 0 5px 15px rgba(255,255,255,0.4); }
.gr-social-uw { background: rgba(20, 168, 0, 0.1); color: #14a800; border-color: rgba(20, 168, 0, 0.3); }
.gr-social-uw:hover { background: #14a800; color: white; box-shadow: 0 5px 15px rgba(20, 168, 0, 0.4); }

.gr-footer-app {
    margin-top: 22px;
}
.gr-footer-app-title {
    color: #93c5fd;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 700;
}
.gr-playstore-link {
    display: inline-block;
    max-width: 180px;
    transition: var(--gr-transition);
}
.gr-playstore-link:hover {
    transform: translateY(-2px);
}
.gr-playstore-badge {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* App Download Popup */
.gr-app-popup-content {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.98) 45%);
}
.gr-app-popup-header {
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 58%, #0ea5e9 100%);
    color: #fff;
    text-align: center;
    padding: 22px 20px 20px;
    position: relative;
    overflow: hidden;
}
.gr-app-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.95;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.gr-app-popup-close:hover {
    transform: scale(1.06);
    background-color: rgba(255, 255, 255, 0.32);
}
.gr-app-popup-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}
.gr-app-popup-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    right: -70px;
    top: -80px;
}
.gr-app-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
}
.gr-app-popup-logo-wrap {
    position: relative;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}
.gr-app-popup-logo {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    border-radius: 22px;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.4);
}
.gr-app-popup-chip {
    position: absolute;
    right: calc(50% - 84px);
    bottom: -6px;
    transform: translateX(50%);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #0b1020;
    background: #fde047;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.gr-app-popup-subtitle {
    color: rgba(255, 255, 255, 0.88);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
    font-size: 0.92rem;
}
.gr-app-popup-body {
    padding: 22px 20px 20px;
    text-align: center;
}
.gr-app-popup-points {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}
.gr-app-popup-points span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}
.gr-app-popup-points i {
    color: #16a34a;
}
.gr-popup-playstore-link {
    transition: transform 0.2s ease, filter 0.2s ease;
}
.gr-popup-playstore-link:hover {
    transform: translateY(-2px);
    filter: saturate(1.05);
}
.gr-popup-playstore-badge {
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}
.gr-app-popup-later {
    font-size: 0.84rem;
    font-weight: 600;
}
.gr-app-popup-later:hover {
    color: #0f172a !important;
}

/* Keep logo size stable even if other global img styles exist */
#studentAppPopup .gr-app-popup-logo {
    max-width: 96px;
    max-height: 96px;
}

/* Footer Bottom */
.gr-footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.gr-heart-beat {
    color: #ef4444;
    animation: gr-heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}
@keyframes gr-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.gr-wpfixhub-link {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-decoration: none;
    transition: var(--gr-transition);
}
.gr-wpfixhub-link:hover {
    letter-spacing: 1px;
}

/* ========== Contact Cards ========== */
.gr-contact-card {
    border-radius: var(--gr-radius-lg);
    border: none;
    box-shadow: var(--gr-shadow-md);
    transition: var(--gr-transition);
    overflow: hidden;
}
.gr-contact-card:hover {
    box-shadow: var(--gr-shadow-lg);
}
.gr-contact-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

/* ========== Form Styles ========== */
.gr-form .form-control,
.gr-form .form-select {
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    padding: 12px 16px;
    font-size: 0.92rem;
    transition: var(--gr-transition);
}
.gr-form .form-control:focus,
.gr-form .form-select:focus {
    border-color: var(--gr-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.gr-form .input-group-text {
    border: 2px solid var(--gr-border);
    border-right: none;
    background: var(--gr-gradient-light);
    color: var(--gr-primary);
    border-radius: var(--gr-radius-sm) 0 0 var(--gr-radius-sm);
}
.gr-form .input-group .form-control {
    border-left: none;
    border-radius: 0 var(--gr-radius-sm) var(--gr-radius-sm) 0;
}

/* ========== Utility Classes ========== */
.gr-gradient-text {
    background: var(--gr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gr-bg-gradient { background: var(--gr-gradient); }
.gr-bg-light { background: var(--gr-gradient-light); }
.gr-text-primary { color: var(--gr-primary) !important; }
.gr-border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, var(--gr-gradient) border-box;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .gr-hero { padding: 70px 0 60px; }
    .gr-hero-title { font-size: 2.5rem; }
    .gr-hero-subtitle { font-size: 1.05rem; }
    .gr-section { padding: 50px 0; }
    .gr-section-title { font-size: 1.8rem; }
    .gr-page-header { padding: 50px 0 35px; }
    .gr-page-header h1 { font-size: 2rem; }
    
    /* Navbar mobile collapse */
    .gr-navbar .navbar-collapse {
        background: white;
        border-radius: var(--gr-radius);
        box-shadow: var(--gr-shadow-lg);
        padding: 12px;
        margin-top: 12px;
        border: 1px solid var(--gr-border);
        max-height: 80vh;
        overflow-y: auto;
    }
    .gr-navbar .navbar-collapse .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .gr-navbar .navbar-collapse .nav-item:last-child { border-bottom: none; }
    .gr-nav-link { padding: 12px 16px !important; font-size: 0.95rem; border-radius: 8px !important; }
    .gr-nav-link:hover, .gr-nav-link.active { background: var(--gr-gradient-light); }
    .gr-nav-link.active::after { display: none; }
    .gr-navbar .navbar-collapse .gr-btn-primary {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding: 12px 20px;
    }
    .gr-navbar .navbar-collapse .dropdown-menu {
        box-shadow: none !important;
        border: 1px solid var(--gr-border) !important;
        margin-top: 4px !important;
        position: static !important;
        transform: none !important;
        width: 100%;
    }
    
    /* CTA Section */
    .gr-cta { padding: 50px 0; }
    
    /* Footer */
    .gr-footer-brand { justify-content: center; }
    .gr-footer-desc { text-align: center; }
    .gr-footer-socials { justify-content: center; }
    .gr-footer-app { text-align: center; }
    .gr-footer-heading { display: block; text-align: left; }
    
    /* Feature cards */
    .gr-feature-card { padding: 28px 20px; }
    .gr-icon-box { width: 56px; height: 56px; font-size: 24px; }
    
    /* Role cards */
    .gr-role-card .card-body { padding: 28px 20px; }
    .gr-role-card .gr-role-icon { width: 64px; height: 64px; font-size: 28px; }
    
    /* Pricing cards */
    .gr-pricing-card.gr-popular { transform: none; }
    .gr-pricing-card.gr-popular:hover { transform: none; }

    /* Flow section */
    .gr-road-path {
        left: 18px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 14px;
        height: auto;
        transform: none;
    }
    .gr-road-path::before {
        inset: 8px 3px;
        background: repeating-linear-gradient(
            180deg,
            rgba(59, 130, 246, 0.18) 0,
            rgba(59, 130, 246, 0.18) 18px,
            transparent 18px,
            transparent 38px
        );
        animation: roadFlowVertical 2.8s linear infinite;
    }
    .gr-road-marker {
        left: 18px;
        right: auto;
        top: 18px;
        bottom: 18px;
        width: 0;
        transform: none;
    }
    .gr-road-marker-dot {
        top: 0;
        left: 50%;
        margin-top: 0;
        margin-left: -11px;
        animation: roadMarkerVertical 6s linear infinite;
    }
    .gr-road-step {
        min-height: auto;
        padding: 28px 20px 24px 44px;
        text-align: left;
    }
    .gr-road-step::after {
        left: 18px;
        top: 32px;
        transform: translateX(-50%);
    }
    .gr-road-step-icon {
        margin: 0 0 18px;
        width: 72px;
        height: 72px;
        font-size: 28px;
        border-radius: 20px;
    }

    .gr-road-flow { padding: 10px 0 0; }
    .gr-road-step { padding: 24px 18px 20px 42px; }
    .gr-road-step-badge { margin-bottom: 14px; }
    .gr-road-step-icon { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
    
    /* Contact */
    .gr-contact-icon { width: 60px; height: 60px; font-size: 26px; }
}

@media (max-width: 576px) {
    .gr-hero { padding: 40px 0 35px; }
    .gr-hero-title { font-size: 1.75rem; letter-spacing: -0.5px; }
    .gr-hero-subtitle { font-size: 0.95rem; line-height: 1.6; }
    .gr-hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .gr-hero .btn, .gr-hero .gr-btn-primary, .gr-hero .gr-btn-white {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 12px 20px;
    }
    .gr-hero .d-flex.gap-3 {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .gr-navbar { padding: 6px 0; }
    .gr-brand-text { font-size: 1.25rem; }
    .gr-logo { height: 36px !important; }
    .gr-toggler { padding: 4px 8px; font-size: 1.1rem; }
    
    .gr-section { padding: 40px 0; }
    .gr-section-title { font-size: 1.35rem; }
    .gr-section-subtitle { font-size: 0.9rem; }
    .gr-section-badge { font-size: 0.7rem; padding: 5px 14px; }
    
    .gr-page-header { padding: 35px 0 25px; }
    .gr-page-header h1 { font-size: 1.6rem; }
    .gr-page-header p { font-size: 0.95rem; }
    
    .gr-feature-card { padding: 24px 16px; margin-bottom: 0; }
    .gr-icon-box { width: 50px; height: 50px; font-size: 22px; border-radius: 14px; margin-bottom: 14px; }
    
    .gr-price { font-size: 2.5rem; }
    
    .gr-stat-card { padding: 20px 12px; }
    .gr-stat-card .gr-stat-number { font-size: 1.8rem; }
    .gr-stat-card .gr-stat-icon { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; margin-bottom: 12px; }
    
    /* Footer mobile */
    .gr-footer-main { padding: 35px 0 10px; }
    .gr-footer-brand-text { font-size: 1.3rem; }
    .gr-footer-heading { font-size: 0.85rem; margin-bottom: 14px; padding-bottom: 8px; }
    .gr-footer-links a { font-size: 0.82rem; padding: 3px 0; }
    .gr-footer-bottom { font-size: 0.78rem; padding: 12px 0; }
    .gr-social-btn { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
    .gr-playstore-link { max-width: 160px; }
    .gr-app-popup-content { border-radius: 18px; }
    .gr-app-popup-header { padding: 18px 14px 14px; }
    .gr-app-popup-body { padding: 16px 14px; }
    .gr-app-popup-close { top: 10px; right: 10px; width: 30px; height: 30px; }
    .gr-app-popup-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 1.35rem; margin-bottom: 10px; }
    .gr-app-popup-logo { width: 72px; height: 72px; border-radius: 18px; }
    #studentAppPopup .gr-app-popup-logo { max-width: 72px; max-height: 72px; }
    .gr-app-popup-chip { font-size: 0.62rem; padding: 3px 8px; }
    .gr-app-popup-subtitle { font-size: 0.84rem; }
    .gr-app-popup-points span { font-size: 0.8rem; }
    .gr-popup-playstore-badge { width: 180px; }
    
    /* Contact cards */
    .gr-contact-icon { width: 52px; height: 52px; font-size: 22px; }
    .gr-contact-card .card-body { padding: 20px; }
    
    /* Form */
    .gr-form .form-control, .gr-form .form-select { padding: 10px 14px; font-size: 0.88rem; }
    
    /* Accordion */
    .gr-accordion .accordion-button { padding: 14px 18px; font-size: 0.9rem; }
    .gr-accordion .accordion-body { padding: 16px 18px; font-size: 0.88rem; }
    
    /* Institute card mobile */
    .gr-institute-card .gr-inst-banner { height: 120px; }
    .gr-institute-card .gr-inst-logo { width: 56px; height: 56px; margin-top: -28px; }
    .gr-inst-stat .gr-stat-num { font-size: 1.1rem; }
    
    /* CTA */
    .gr-cta { padding: 40px 0; }
    .gr-cta h2 { font-size: 1.5rem !important; }
    .gr-cta p { font-size: 0.9rem; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .gr-feature-card:hover { box-shadow: var(--gr-shadow); }
    .gr-feature-card:hover::before { transform: scaleX(0); }
    .gr-card:hover { box-shadow: var(--gr-shadow); }
    .gr-institute-card:hover { box-shadow: var(--gr-shadow); border-color: var(--gr-border); }
    .gr-pricing-card:hover { box-shadow: var(--gr-shadow); }
    .gr-btn-glow { animation: none; }
    .gr-nav-link { padding: 12px 16px !important; }
    .gr-footer-links a:hover { padding-left: 0; }
}
