/* ===================================
   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;
}

/* ========== 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); }

/* 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-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; }
    
    /* 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; }
    
    /* 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; }
}
