/* ============================================
   Dr. B.R. Ambedkar Social Platform - Main CSS
   Theme: Royal Blue (#1a237e) inspired by 
   the Ambedkarite movement's blue flag
   ============================================ */

:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1642;
    --accent: #f9a825;
    --accent-light: #fdd835;
    --bg-light: #f0f2f5;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --border: #dee2e6;
    --success: #2e7d32;
    --danger: #c62828;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    --gradient-accent: linear-gradient(135deg, #f9a825 0%, #fdd835 100%);
    --gradient-hero: linear-gradient(135deg, #0d1642 0%, #1a237e 40%, #283593 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============ NAVBAR ============ */
.navbar-ambedkar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-ambedkar .navbar-brand {
    color: var(--text-light) !important;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-ambedkar .navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 900;
}

.navbar-ambedkar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-ambedkar .nav-link:hover,
.navbar-ambedkar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

.navbar-ambedkar .nav-link i {
    margin-right: 6px;
}

.navbar-ambedkar .btn-nav-register {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 700;
    border: none;
    padding: 0.45rem 1.2rem !important;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.navbar-ambedkar .btn-nav-register:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(249,168,37,0.4);
}

.user-avatar-nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: var(--gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249,168,37,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(57,73,171,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249,168,37,0.15);
    border: 1px solid rgba(249,168,37,0.3);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.82rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    width: 380px;
    height: 460px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 3px solid rgba(249,168,37,0.3);
    box-shadow: var(--shadow-xl);
    position: relative;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    text-align: center;
    padding: 2rem;
}

.hero-image-placeholder .icon {
    font-size: 6rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-image-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============ SECTION STYLES ============ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26,35,126,0.08);
    color: var(--primary);
    padding: 5px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* ============ CARDS ============ */
.card-ambedkar {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-ambedkar:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ============ POST CARD ============ */
.post-card {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    gap: 12px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-light);
}

.post-user-info {
    flex: 1;
}

.post-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
}

.post-username:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-quote { background: #e8f5e9; color: #2e7d32; }
.badge-history { background: #e3f2fd; color: #1565c0; }
.badge-event { background: #fff3e0; color: #e65100; }
.badge-tribute { background: #fce4ec; color: #c62828; }
.badge-education { background: #f3e5f5; color: #7b1fa2; }
.badge-general { background: #eceff1; color: #546e7a; }

.post-content {
    padding: 0 1.2rem 0.8rem;
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.post-media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.post-media:hover {
    opacity: 0.95;
}

.post-media-video {
    width: 100%;
    max-height: 500px;
    background: #000;
}

.post-actions {
    display: flex;
    padding: 0.6rem 1.2rem;
    border-top: 1px solid var(--border);
    gap: 0;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.post-action-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.post-action-btn.liked {
    color: var(--danger);
}

.post-action-btn.liked i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 1.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============ COMMENTS ============ */
.comments-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 1rem 1.2rem;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    background: var(--bg-white);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    flex: 1;
    font-size: 0.88rem;
}

.comment-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 0.8rem;
    align-items: center;
}

.comment-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    border-color: var(--primary-light);
}

/* ============ CREATE POST ============ */
.create-post-card {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.create-post-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.create-post-input {
    flex: 1;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 0.7rem 1.2rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.3s ease;
}

.create-post-input:hover {
    background: #e4e6e9;
}

.create-post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.create-post-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-btn:hover {
    background: var(--bg-light);
}

.create-post-btn i.fa-image { color: #2e7d32; }
.create-post-btn i.fa-video { color: #c62828; }
.create-post-btn i.fa-quote-left { color: #7b1fa2; }

/* ============ SIDEBAR ============ */
.sidebar-card {
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============ QUOTE CARD ============ */
.quote-card {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: -15px;
    left: 15px;
    font-size: 8rem;
    opacity: 0.1;
    font-family: Georgia, serif;
}

.quote-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.quote-author {
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
}

/* ============ TIMELINE ============ */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2.5rem 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.timeline-year {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 3px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============ PROFILE ============ */
.profile-header {
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.profile-info-section {
    padding: 0 2rem 1.5rem;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.profile-avatar-lg {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.profile-details {
    flex: 1;
    padding-bottom: 0.5rem;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-username {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
}

.profile-bio {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    margin-top: 0.4rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 0.8rem;
}

.profile-stat {
    text-align: center;
    color: white;
}

.profile-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
}

.profile-stat-label {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(249,168,37,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-md);
}

.auth-logo h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-floating-custom {
    margin-bottom: 1rem;
}

.form-floating-custom .form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.3s ease;
}

.form-floating-custom .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,35,126,0.3);
    background: var(--gradient-primary);
    color: white;
}

.btn-accent-custom {
    background: var(--gradient-accent);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.btn-accent-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,168,37,0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

/* ============ UPLOAD PAGE ============ */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(26,35,126,0.03);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============ ABOUT PAGE ============ */
.about-hero {
    background: var(--gradient-hero);
    padding: 5rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 40px 40px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.info-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* ============ FOOTER ============ */
.footer-ambedkar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-ambedkar h5 {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-ambedkar a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-ambedkar a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ============ ALERTS ============ */
.alert-custom {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============ PAGINATION ============ */
.pagination-custom .page-link {
    border: none;
    color: var(--primary);
    font-weight: 600;
    margin: 0 3px;
    border-radius: var(--radius-sm);
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
}

/* ============ MEDIA QUERIES ============ */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-image-frame { width: 280px; height: 340px; }
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 4rem !important; padding-right: 1rem !important; text-align: left !important; }
    .timeline-dot { left: 21px !important; right: auto !important; }
    .profile-info-section { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats { justify-content: center; }
}

@media (max-width: 767px) {
    .hero-section { min-height: auto; padding: 3rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-image-frame { width: 220px; height: 270px; }
    .section-title { font-size: 1.6rem; }
    .auth-card { margin: 1rem; padding: 1.5rem; }
    .profile-avatar-lg { width: 100px; height: 100px; }
}

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ MISC ============ */
.img-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    display: none;
}

.delete-btn {
    color: var(--danger);
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.delete-btn:hover {
    opacity: 1;
}

.ashoka-chakra {
    display: inline-block;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--gradient-primary) !important; }
.border-accent { border-color: var(--accent) !important; }
