:root {
    --bg-color: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #bef264;
    /* Lime green */
    --accent-hover: #a3e635;
    --border-color: #e5e7eb;
    --font-family: 'Inter', sans-serif;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

.mobile-only {
    display: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden !important;
}

/* Header */
header {
    padding: 16px 0;
    background: #0f172a;
    /* Dark background matching reference */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 56px;
    /* Increased from 40px */
    width: auto;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    /* Light gray */
    letter-spacing: 0.5px;
}

.desktop-nav {
    display: flex;
    gap: 40px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e2e8f0;
    /* Light text for dark bg */
}

.desktop-nav a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.chevron {
    font-size: 0.8rem;
    margin-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-actions {
    color: #fff;
    /* Sign in text white */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: #fff;
    /* White bars for dark header */
}

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background-color: #f3f4f6;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 32px;
    display: inline-block;
    border: 1px solid #e5e5e5;
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    color: var(--text-main);
    gap: 8px;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.icon-linkedin {
    font-weight: 800;
    font-family: serif;
    /* Hack for 'in' styled icon */
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.gallery-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}



.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    width: calc(20% - 19.2px);
    /* 5 items per row with gaps */
    min-width: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Specific layout mapping roughly to the image "scattered" look */
/* 
   The image shows:
   Left col: 2 stacked images (one tall or two small)
   Middle left: 1 portrait
   Middle right: 1 portrait or landscape?
   Right col: 1 tall landscape?
   
   Let's approximate with grid areas.
*/

.gallery-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1.2fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 20px !important;
    width: 80% !important;
    max-width: 800px !important;
    height: 500px !important;
    margin: 0 auto !important;
    grid-template-areas:
        "left-top center right-top"
        "left-bottom center right-bottom" !important;
}

/* Hide first image on desktop */
.gallery-item.item-1 {
    display: none !important;
}

/* Hide sticky notes collaboration image on desktop */
.gallery-item.item-2:not(.mobile-only) {
    display: none !important;
}

/* Position items in grid - matching your pattern */
.gallery-item.item-2 {
    grid-area: left-top !important;
}

.gallery-item.item-3 {
    grid-area: center !important;
}

.gallery-item.item-4 {
    grid-area: right-top !important;
}

.gallery-item.item-5 {
    grid-area: left-bottom !important;
}

.gallery-item.item-6 {
    grid-area: right-bottom !important;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Internships Section */
.internships-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

.internships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid #f3f4f6;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Footer Section - Rebranded */
footer {
    padding: 80px 0 30px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    overflow-x: hidden;
    width: 100%;
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 32px;
    border-top: 1px solid #f3f4f6;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: 1fr 1fr !important;
        gap: 20px !important;
        height: 500px !important;
        max-width: 900px !important;
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .nav-actions {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: right;
        padding: 20px 24px;
        gap: 20px;
        align-items: flex-end;
    }

    /* When nav is open, show them */
    header.nav-open {
        height: 100vh;
        /* Full height */
        overflow-y: auto;
        /* Enable internal scrolling */
        overflow-x: hidden;
        /* Prevent side scroll */
        align-items: flex-end;
        /* Align stacking */
    }

    header.nav-open .desktop-nav,
    header.nav-open .nav-actions {
        display: flex;
    }

    header.nav-open .nav-container {
        flex-direction: column;
        align-items: flex-end;
        /* Ensure container doesn't overflow horizontally if padding exists */
    }

    header.nav-open .desktop-nav {
        order: 2;
        border-top: 1px solid #f1f5f9;
        margin-top: 16px;
        /* Move line down */
        padding-top: 16px;
        /* Add internal spacing */
    }

    header.nav-open .nav-actions {
        order: 3;
        border-top: 1px solid #f1f5f9;
    }

    header.nav-open .logo {
        width: 100%;
        justify-content: flex-start;
        padding-bottom: 8px;
        /* Extra spacing if needed, but margin-top on nav handles the line */
    }

    /* Mobile specific adjustments */
    .logo-title {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 36px;
    }

    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 24px;
        /* Align with padding */
        right: 24px;
        z-index: 2000;
        background: rgba(15, 23, 42, 0.8);
        padding: 5px;
        border-radius: 4px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 16px;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Reduce spacing on mobile */
    .gallery-section {
        padding: 30px 0 15px !important;
    }

    .internships-section {
        padding: 15px 0 30px !important;
    }

    .hero {
        padding: 30px 0 !important;
    }

    /* Mobile: Horizontal Scrolling Strip */
    /* Mobile: Continuous Marquee Animation */
    .mobile-only {
        display: block !important;
    }

    /* Override desktop grid layout completely */
    .gallery-grid {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        grid-template-areas: none !important;
        background-color: transparent !important;
        gap: 16px !important;
        width: max-content !important;
        max-width: none !important;
        height: auto !important;
        animation: marquee 20s linear infinite;
        overflow-x: visible;
        padding-bottom: 0;
        justify-content: flex-start !important;
    }

    .gallery-grid:hover {
        animation-play-state: paused;
    }

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* Force all items to display and be uniform size */
    .gallery-item {
        display: block !important;
        flex: 0 0 260px !important;
        height: 180px !important;
        border-radius: 12px;
        grid-area: auto !important;
    }

    /* Hide the portrait image (item-3 without mobile-only class) on mobile */
    .gallery-item.item-3:not(.mobile-only) {
        display: none !important;
    }

    /* Override desktop hide rule for item-1 */
    .gallery-item.item-1 {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 260px !important;
    }

    /* Force all numbered items to show */
    .gallery-item.item-2,
    .gallery-item.item-3,
    .gallery-item.item-4,
    .gallery-item.item-5,
    .gallery-item.item-6,
    .gallery-item.item-7,
    .gallery-item.item-8,
    .gallery-item.item-9,
    .gallery-item.item-10 {
        display: block !important;
        grid-area: auto !important;
    }

    /* Ensure container clips */
    .gallery-container {
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    padding: 24px;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-main);
    font-weight: 600;
}


/* --- Dashboard Styles --- */

.dashboard-body {
    background-color: #ffffff;
    padding-top: 0 !important;
}

/* Dashboard Header */
.dashboard-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Reduced from 40px */
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    width: 240px;
    /* Reduced from 300px */
}

.search-bar i {
    color: #94a3b8;
    margin-right: 8px;
}

.search-bar input {
    border: none;
    outline: none;
    font-family: var(--font-family);
    width: 100%;
    color: var(--text-main);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    /* Reduced from 32px */
}

.dashboard-nav {
    display: flex;
    gap: 32px;
    /* Reduced from 48px to prevent overflow */
}

.dashboard-nav a {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.dashboard-nav a:hover {
    color: var(--text-main);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.avatar-circle-sm {
    width: 40px;
    height: 40px;
    background-color: #3b82f6;
    /* Blue matching image */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 75px);
    padding-top: 75px;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    padding: 24px 0;
    /* border-right: 1px solid #f1f5f9; optional based on image, looks clean though */
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.sidebar-item.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 0 4px 4px 0;
    /* Or full rounded depending on exact preference */
    /* Implementation in image looks like a solid block */
    background-color: #3b82f6;
    color: white;
}

.sidebar-item i {
    font-size: 1.2rem;
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    background-color: #ffffff;
    /* Main content background */
}

/* Hide sections by default for JS toggling */
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.avatar-circle-lg {
    width: 80px;
    height: 80px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.5rem;
}

.welcome-text .greeting {
    display: block;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 4px;
}

.welcome-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-title-dash {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon-bg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

/* Course Progress Card (Simple) */
.course-progress-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    max-width: 600px;
    margin-top: 24px;
}

.course-img-placeholder {
    width: 200px;
    height: 120px;
}

.course-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.course-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 12px 0;
        overflow-x: auto;
    }

    .sidebar-menu {
        flex-direction: row;
        padding: 0 16px;
    }

    .sidebar-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
    }

    .sidebar-item.active {
        border-radius: 4px;
        background-color: #3b82f6;
    }
}

/* Hide mobile-only elements on desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-search-bar {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {

    /* Mobile Dashboard - Keep Desktop Layout */
    .dashboard-header {
        flex-direction: row;
        gap: 12px;
        padding: 12px 16px;
        flex-wrap: nowrap;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .header-left .logo {
        display: flex;
        align-items: center;
    }

    .header-left .logo-img {
        width: 32px;
        height: 32px;
    }

    .header-left .logo-text-container .logo-title {
        font-size: 13px;
    }

    .header-left .logo-text-container .logo-subtitle {
        font-size: 9px;
    }

    /* Hide search bar in header on mobile */
    .header-left .search-bar {
        display: none;
    }

    .header-right {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Hide navigation on mobile */
    .dashboard-nav {
        display: none !important;
    }

    /* Mobile Hamburger Menu Button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-main);
        padding: 8px;
    }

    .mobile-menu-toggle:hover {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .mobile-menu-content {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0);
    }

    .mobile-menu-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: var(--text-main);
        padding: 8px;
    }

    .mobile-menu-nav {
        padding: 60px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-nav>a {
        padding: 14px 16px;
        color: var(--text-main);
        text-decoration: none;
        border-radius: 8px;
        font-size: 16px;
        transition: background 0.2s;
    }

    .mobile-menu-nav>a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-more {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-menu-more .more-title {
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        margin-bottom: 8px;
        padding: 0 16px;
    }

    .mobile-menu-more a {
        display: block;
        padding: 12px 16px;
        color: var(--text-main);
        text-decoration: none;
        border-radius: 8px;
        font-size: 15px;
        transition: background 0.2s;
    }

    .mobile-menu-more a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    /* User profile on mobile */
    .user-profile-header .user-name {
        font-size: 12px;
    }

    .user-profile-header .avatar-circle-sm {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* Mobile Search Bar */
    .mobile-search-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 60px;
        z-index: 98;
    }

    .mobile-search-bar i {
        color: #6b7280;
        font-size: 18px;
    }

    .mobile-search-bar input {
        flex: 1;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
    }

    .mobile-search-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-main);
        padding: 4px;
    }

    .mobile-search-menu:hover {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }

    /* Move sidebar to bottom on mobile */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-right: none;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        padding: 0;
    }

    .sidebar-menu {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 6px 0;
        gap: 0;
    }

    .sidebar-item {
        flex: 1;
        flex-direction: column;
        padding: 6px 2px;
        gap: 2px;
        min-width: 0;
        text-align: center;
    }

    .sidebar-item i {
        font-size: 18px;
        margin-right: 0;
    }

    .sidebar-item span {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        max-width: 100%;
    }

    /* Adjust main content for bottom navigation */
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-bottom: 80px;
        padding-top: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }
}

/* Profile Dropdown */
.user-profile-header {
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    cursor: pointer;
    /* Prevent name wrapping */
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 4px;
    pointer-events: auto;
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
}

.user-profile-header.active .profile-dropdown {
    display: block;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-name {
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.dropdown-list {
    list-style: none;
    padding: 8px 0;
}

.dropdown-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #475569;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-list li a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.dropdown-list li a i {
    font-size: 1.1rem;
}

/* Sidebar Refined Active State */
.sidebar-item.active {
    background-color: #3b82f6;
    color: white;
    border-radius: 6px;
    /* Fully rounded corners as per image */
    margin: 0 12px;
    /* Add margin so it doesn't touch edges */
}

/* Stats Card Refinement */
.stat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border-radius: 12px;
    padding: 40px 20px;
    /* More vertical padding */
}

.stat-icon-bg {
    width: 64px;
    /* Larger icon circle */
    height: 64px;
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.stat-number {
    font-size: 2.5rem;
    /* Larger number */
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
}

/* Profile Section Styles */
.profile-container {
    max-width: 800px;
}

.profile-row {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
}

.profile-label {
    width: 250px;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    flex-shrink: 0;
}

.profile-value {
    color: #111827;
    font-size: 1rem;
    font-weight: 500;
}

.profile-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.profile-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-input:disabled {
    background-color: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: default;
}

.btn-save-profile {
    margin-top: 32px;
    background-color: #3b82f6;
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    float: right;
}

.btn-save-profile:hover {
    background-color: #2563eb;
}

/* Professional Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.empty-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
    display: block;
}

.empty-text {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* --- Advanced Settings Styles --- */

/* Tabs */
.settings-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.settings-tabs a {
    padding-bottom: 12px;
    font-weight: 500;
    color: #64748b;
    position: relative;
    font-size: 1rem;
}

.settings-tabs a.active {
    color: #3b82f6;
    font-weight: 600;
}

.settings-tabs a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

/* Media Area (Banner & Avatar) */
.settings-header-media {
    position: relative;
    margin-bottom: 60px;
    /* Space for avatar overlap */
}

.settings-banner {
    height: 200px;
    background: linear-gradient(135deg, #2e1065, #7c3aed);
    /* Deep purple gradient */
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay effect */
.settings-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 25%);
}

.media-btn {
    position: absolute;
    background: white;
    color: #3b82f6;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.cover-btn {
    bottom: 16px;
    right: 16px;
}

.delete-cover-btn {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.settings-avatar-area {
    position: absolute;
    bottom: -50px;
    left: 40px;
    z-index: 20;
}

.settings-avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.settings-avatar-circle:hover .avatar-overlay {
    opacity: 1;
}

.media-hints {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Form Styling */
.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bg-muted {
    background-color: #f1f5f9;
    color: #64748b;
}

.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.form-input[type="select"] {
    appearance: none;
}

/* Rich Text Editor Mockup */
.rich-text-container {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.rte-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    display: flex;
    gap: 4px;
}

.rte-toolbar button {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
}

.rte-toolbar button:hover {
    background: #e2e8f0;
    color: #334155;
}

.rte-editor {
    width: 100%;
    height: 120px;
    border: none;
    padding: 12px;
    resize: vertical;
    font-family: var(--font-family);
    outline: none;
}

.form-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.btn-update-profile {
    background-color: #3b82f6;
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-update-profile:hover {
    background-color: #2563eb;
}

@media (max-width: 768px) {
    .form-grid-row {
        grid-template-columns: 1fr;
    }

    .settings-banner {
        height: 140px;
    }

    .settings-avatar-area {
        left: 20px;
        bottom: -40px;
    }

    .settings-avatar-circle {
        width: 80px;
        height: 80px;
    }

    .media-hints {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 50px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    background-color: #f8fafc;
    min-height: 80vh;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.contact-form-section p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-submit:hover {
    background-color: #4338ca;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contact-info-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.helpline-card {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.system-status {
    margin-bottom: 16px;
}

.status-indicator {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.helpline-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    backdrop-filter: blur(10px);
}

.whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.whatsapp-icon {
    font-size: 1.2rem;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-info-card,
    .helpline-card {
        padding: 24px;
    }

    .contact-form-section h2 {
        font-size: 1.75rem;
    }
}

/* Internships Page Styles */
.internships-page {
    padding: 40px 0 80px;
    background-color: #f8fafc;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filters and Search */
.internships-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.search-input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    width: 300px;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(190, 242, 100, 0.2);
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* Layout */
.internships-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* Sidebar Filters */
.sidebar-filters {
    background: white;
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 32px;
}

.filter-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.clear-filters {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Internships Grid */
.internships-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.internship-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.internship-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.internship-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.internship-card .card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.instructor-avatar {
    width: 24px;
    height: 24px;
    background: #374151;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.internship-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Responsive Internships Page */
@media (max-width: 1024px) {
    .internships-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sidebar-filters {
        display: none;
        /* Hide sidebar on tablet/mobile */
    }

    .internships-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .internships-grid-page {
        grid-template-columns: 1fr;
    }

    .internship-card {
        max-width: 100%;
    }
}

/* Cart Page Styles */
.cart-section {
    padding: 40px 0 80px;
    background-color: #f8fafc;
    min-height: 100vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.cart-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
    line-height: 1.4;
}

.item-instructor {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-price {
    text-align: right;
}

.item-price .original-price {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.item-price .current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.item-actions {
    display: flex;
    align-items: center;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background-color: #fee2e2;
}

/* Cart Summary */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.discount {
    color: #059669;
    font-weight: 600;
}

.summary-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 16px 0;
}

.checkout-btn {
    width: 100%;
    background-color: #7c3aed;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #6d28d9;
}

.promo-section {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.promo-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.promo-input:focus {
    outline: none;
    border-color: var(--accent);
}

.apply-promo-btn {
    background-color: var(--accent);
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.apply-promo-btn:hover {
    background-color: var(--accent-hover);
}

.guarantee-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    padding: 24px;
}

.guarantee-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.guarantee-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
    line-height: 1.4;
}

.guarantee-card p:last-child {
    margin-bottom: 0;
}

.continue-shopping {
    text-align: center;
}

.continue-shopping .btn {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Responsive Cart */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 16px;
    }

    .item-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .cart-header h1 {
        font-size: 2rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }

    .item-image {
        justify-self: center;
    }

    .item-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .item-price {
        text-align: center;
    }

    .item-actions {
        justify-content: center;
        margin-top: 0;
    }
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-greeting {
    color: #fff;
    font-weight: 500;
}

.cart-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.logout-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive User Menu */
@media (max-width: 768px) {
    .user-menu {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        text-align: center;
        padding: 16px 0;
    }

    .user-greeting {
        font-size: 1rem;
    }
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "image details"
            "price price"
            "actions actions";
        gap: 12px;
        align-items: start;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .item-image {
        grid-area: image;
        width: 80px;
        height: 80px;
    }

    .item-details {
        grid-area: details;
    }

    .item-price {
        grid-area: price;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
    }

    .item-actions {
        grid-area: actions;
        justify-content: flex-end;
    }

    .item-price .original-price {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .item-price .current-price {
        font-size: 1.25rem;
    }
}

/* Checkout Page Styles */
.checkout-section {
    padding: 40px 0;
    background-color: #ffffff;
    min-height: 100vh;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
    /* Prevent stretching */
}

.checkout-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
}

.checkout-group {
    margin-bottom: 32px;
}

.billing-box {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
    background: #f9fafb;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.billing-name {
    font-weight: 500;
    color: #111827;
}

.edit-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

.billing-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}

.payment-box {
    border: 1px solid #3b82f6;
    /* Selected state */
    background: #eff6ff;
    padding: 16px;
    border-radius: 6px;
}

.payment-header {
    display: block;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.payment-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

.order-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    color: #6b7280;
    font-size: 0.95rem;
}

.terms-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 32px;
}

.terms-text a {
    color: #3b82f6;
    text-decoration: underline;
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
}

.place-order-btn {
    background-color: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.place-order-btn:hover {
    background-color: #e5e7eb;
}

/* Right Col: Summary */
.checkout-summary-col {
    padding-left: 20px;
}

.order-summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #374151;
}

.mini-cart-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.mini-img-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mini-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.mini-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6b7280;
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-details h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 500;
}

.mini-prices {
    font-size: 0.85rem;
}

.mini-original {
    text-decoration: line-through;
    color: #9ca3af;
    margin-right: 8px;
}

.mini-current {
    font-weight: 600;
    color: #111827;
}

.coupon-section {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    margin-bottom: 20px;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 12px;
    cursor: pointer;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.coupon-input-group button {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 4px;
    color: #9ca3af;
    cursor: not-allowed;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.total-line {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 16px;
}

/* Responsive Checkout */
@media (max-width: 900px) {
    .checkout-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .checkout-form-col {
        order: 1;
    }

    .checkout-summary-col {
        order: 2;
        padding-left: 0;
    }
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.msme-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #dbeafe;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 40px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 60px;
    /* Explicit width */
    height: 60px;
    /* Explicit height */
    min-width: 60px;
    /* Prevent shrinking */
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #2563eb;
    font-size: 1.5rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stat-box {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 5px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        /* Image on top for mobile */
    }
}

/* ==========================================================================
   CUSTOM SPLIT DROPDOWN NAVIGATION - FIX
   ========================================================================== */
.navbar-nav {
    display: flex;
    align-items: center;
}

.split-dropdown {
    position: relative;
    display: flex !important;
    align-items: center;
    margin: 0 5px;
}

.split-link-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.split-link-group:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
}

.nav-link-main {
    padding: 10px 12px 10px 16px !important;
    color: #ecf0f1 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link-main:hover {
    color: #4a90e2 !important;
}

.arrow-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ecf0f1 !important;
    padding: 10px 12px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.arrow-toggle:hover {
    background: rgba(74, 144, 226, 0.2) !important;
    color: #4a90e2 !important;
}

.arrow-toggle.active i {
    transform: rotate(180deg);
}

.custom-dropdown-popover {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin-top: 15px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    z-index: 9999 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.custom-dropdown-popover.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.popover-header {
    font-size: 11px !important;
    text-transform: uppercase !important;
    color: #4a90e2 !important;
    letter-spacing: 2.5px !important;
    margin-bottom: 15px !important;
    padding-left: 5px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.popover-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.popover-item {
    margin-bottom: 6px !important;
    list-style: none !important;
}

.popover-link {
    display: flex !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: transparent !important;
}

.popover-link:hover {
    background: rgba(74, 144, 226, 0.15) !important;
    color: #4a90e2 !important;
    transform: translateX(6px) !important;
}

.popover-link i {
    font-size: 16px !important;
    width: 20px !important;
    text-align: center !important;
    color: #4a90e2 !important;
}

/* General Link Cleanup in Nav */
.nav-item a {
    text-decoration: none !important;
}

.navbar-nav .nav-link {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}