* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: #334155;
    line-height: 1.6;
}

/* Top Banner Area */
.top-banner-area {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.banner-text {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.banner-link:hover {
    text-decoration: underline;
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.banner-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Left Side Banner */
.left-side-banner {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 200px;
    margin-left: 1rem;
}

.left-banner-content {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    position: relative;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.left-banner-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fbbf24;
}

.left-banner-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.left-banner-body p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.offer-time {
    font-size: 0.875rem !important;
    color: #fbbf24 !important;
    font-weight: 600;
}

.left-banner-btn {
    background: #fbbf24;
    color: #1f2937;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.left-banner-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.left-banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.left-banner-close:hover {
    color: white;
    background: rgba(255,255,255,0.2);
}

/* Main Header Styles */
.main-header {
    position: relative;
}

/* Hide old container for new layout */
.container {
    display: none;
}

.form-container {
    display: none;
}

/* Navigation Bar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.nav-logo .diji {
    color: #dc2626;
}

.nav-logo .pharma {
    color: #3b82f6;
}

.pill-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-nav .pill {
    width: 25px;
    height: 12px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.pill-icon-nav .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-nav .red {
    background: #dc2626;
}

.pill-icon-nav .blue {
    background: #3b82f6;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #1e3a8a;
    background: #f1f5f9;
}

.nav-link i {
    font-size: 1rem;
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.login-btn {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.login-btn:hover {
    background: #1e3a8a;
    color: white;
}

.register-btn {
    background: #1e3a8a;
    color: white;
    border: 2px solid #1e3a8a;
}

.register-btn:hover {
    background: #1e40af;
    border-color: #1e40af;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #1e3a8a;
    transition: 0.3s;
}

/* Hero Banner */
.header-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 4rem 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.logo-header .diji {
    color: #dc2626;
    font-size: 3rem;
    font-weight: 800;
}

.logo-header .pharma {
    color: #3b82f6;
    font-size: 3rem;
    font-weight: 800;
}

.pill-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-header .pill {
    width: 40px;
    height: 20px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.pill-icon-header .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-header .red {
    background: #dc2626;
}

.pill-icon-header .blue {
    background: #3b82f6;
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.login-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    z-index: 9999;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    display: none;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e3a8a;
}

.modal-tabs {
    display: flex;
    margin: 0;
    padding: 0 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.modal-tabs .tab-button {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.modal-tabs .tab-button:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
}

.modal-tabs .tab-button.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
    background: white;
}

.auth-form {
    display: none;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.auth-form.active {
    display: block;
}

/* Hero Banner */
.header-banner {
    padding: 4rem 0;
    position: relative;
}

.header-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    min-height: 400px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 16px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    z-index: 10;
    position: relative;
}

/* Floating Visual Elements */
.header-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.visual-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    left: 10%;
    animation-delay: 1s;
}

.element-3 {
    bottom: 25%;
    left: 30%;
    animation-delay: 2s;
}

.element-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: 3s;
}

.element-5 {
    top: 35%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
        opacity: 1;
    }
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.logo-header .diji {
    font-size: 3rem;
    font-weight: bold;
    color: #dc2626;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-header .pharma {
    font-size: 3rem;
    font-weight: bold;
    color: #2563eb;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pill-icon-header {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-header .pill {
    width: 30px;
    height: 18px;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pill-icon-header .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-header .pill-half.red {
    background: #dc2626;
}

.pill-icon-header .pill-half.blue {
    background: #2563eb;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.header-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Profile Navigation Buttons */
.profile-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.profile-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-nav-btn i {
    font-size: 1rem;
    opacity: 0.9;
}

.profile-nav-btn span {
    font-weight: 600;
}

/* Login Widget - Top Right */
.login-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 400px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Update existing form styles for widget */
.login-widget .form-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.login-widget .tab-button {
    flex: 1;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.875rem;
}

.login-widget .tab-button.active {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.login-widget .tab-button:hover:not(.active) {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
}

.login-widget .auth-form {
    display: none;
}

.login-widget .auth-form.active {
    display: block;
}

.login-widget .auth-form h2 {
    display: none;
}

.login-widget .input-group {
    position: relative;
    margin-bottom: 1rem;
}

.login-widget .input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.875rem;
}

.login-widget .input-group input,
.login-widget .input-group select {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
}

.login-widget .input-group input:focus,
.login-widget .input-group select:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.login-widget .submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.login-widget .submit-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.login-widget .forgot-password {
    text-align: center;
    font-size: 0.75rem;
}

.login-widget .forgot-password a {
    color: #1e3a8a;
    text-decoration: none;
}

.login-widget .forgot-password a:hover {
    text-decoration: underline;
}

/* Register form specific styles */
.login-widget .register-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.login-widget .type-btn {
    flex: 1;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #64748b;
}

.login-widget .type-btn.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.login-widget .register-fields {
    display: none;
}

.login-widget .register-fields.active {
    display: block;
}

.login-widget .role-selector {
    margin-bottom: 1rem;
}

.login-widget .role-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.login-widget .role-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-widget .role-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
}

.login-widget .role-options input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.login-widget .location-group {
    display: flex;
    gap: 8px;
}

.login-widget .location-group .input-group {
    flex: 1;
}

.login-widget .location-group .input-group.half {
    flex: 1;
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: white;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text-center h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-text-center p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Platform Statistics */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-box {
    background: white;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label i {
    font-size: 1rem;
    color: #3b82f6;
}

.stat-label span {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.2;
}

/* Featured Advertisement */
.featured-ad {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    position: relative;
    overflow: hidden;
}

.featured-ad::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.featured-ad::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.featured-ad-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.featured-ad-badge {
    background: #dc2626;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-ad-content h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: bold;
}

.featured-ad-content p {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.featured-ad-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ad-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
    font-weight: 500;
}

.ad-detail i {
    color: #dc2626;
}

.featured-ad-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.featured-ad-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h2 {
    font-size: 2.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
}

.blog-post.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.blog-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-post.featured .blog-image {
    height: auto;
    min-height: 300px;
}

.blog-image-placeholder {
    color: white;
    font-size: 3rem;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-post.featured .blog-content h3 {
    font-size: 1.4rem;
}

.blog-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.blog-author, .blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-1px);
}

/* Sponsor Ads */
.sponsor-ads {
    padding: 2rem 0;
    background: white;
}

.sponsor-ad-banner {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.sponsor-badge {
    position: absolute;
    top: -10px;
    left: 2rem;
    background: #0ea5e9;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.sponsor-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sponsor-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.sponsor-info h4 {
    color: #0ea5e9;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.sponsor-info p {
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.sponsor-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-1px);
}

/* Education Section */
.education-section {
    padding: 4rem 0;
    background: white;
}

.education-header {
    text-align: center;
    margin-bottom: 3rem;
}

.education-header h2 {
    font-size: 2.2rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: bold;
}

.education-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.education-card.featured {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 1rem;
    background: #fbbf24;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.education-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.education-card.featured .education-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.education-card h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.education-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.duration {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.level {
    background: #e2e8f0;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.education-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.education-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Campaign Cards */
.education-card.campaign-card {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    position: relative;
}

.education-card.campaign-card .education-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.education-card.limited-card {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    position: relative;
}

.education-card.limited-card .education-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.campaign-badge, .limited-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.limited-badge {
    background: #ef4444;
}

.campaign-items {
    margin: 1rem 0;
    padding: 0;
}

.campaign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #f59e0b;
}

.limited-card .campaign-item {
    border-left-color: #ef4444;
}

.campaign-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.campaign-discount {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.campaign-time {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.campaign-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.campaign-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.limited-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.limited-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Campaign Sections */
.campaigns-container {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.campaign-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.campaign-section.active-campaigns {
    border-left: 4px solid #f59e0b;
}

.campaign-section.limited-campaigns {
    border-left: 4px solid #ef4444;
}

.campaign-section.preferred-campaigns {
    border-left: 4px solid #8b5cf6;
}

.campaign-section-header h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.campaign-section-header h3 i {
    color: #f59e0b;
}

.limited-campaigns .campaign-section-header h3 i {
    color: #ef4444;
}

.preferred-campaigns .campaign-section-header h3 i {
    color: #8b5cf6;
}

.campaign-section-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.campaign-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campaign-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.campaign-mini-card:hover {
    background: #f1f5f9;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.campaign-mini-card.urgent:hover {
    border-color: #ef4444;
}

.campaign-mini-card.popular:hover {
    border-color: #8b5cf6;
}

.campaign-mini-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.campaign-mini-card.urgent .campaign-mini-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.campaign-mini-card.popular .campaign-mini-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.campaign-mini-content {
    flex-grow: 1;
}

.campaign-mini-content h4 {
    color: #1e3a8a;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.campaign-mini-content p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.time-badge {
    background: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.popular-badge {
    background: #8b5cf6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile responsiveness for campaigns and navigation */
@media (max-width: 968px) {
    .campaigns-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    /* Navigation responsive styles */
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
        flex: none;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .auth-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .auth-btn span {
        display: none;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .campaigns-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .campaign-section {
        padding: 1rem;
    }
    
    .campaign-mini-card {
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .campaign-mini-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .campaign-section-header h3 {
        font-size: 1.1rem;
    }
}

/* Banner Ad */
.banner-ad {
    padding: 2rem 0;
    background: #f8fafc;
}

.banner-ad-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.banner-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.banner-text p {
    opacity: 0.9;
}

.banner-btn {
    background: white;
    color: #10b981;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.banner-btn:hover {
    background: #f0f9ff;
    transform: translateY(-1px);
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background: white;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-header h2 {
    font-size: 2rem;
    color: #1e3a8a;
    font-weight: bold;
}

.view-all {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #1e40af;
    gap: 10px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1e40af;
    color: white;
    border-radius: 8px;
    padding: 0.75rem;
    min-width: 60px;
    text-align: center;
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.75rem;
    font-weight: 500;
}

.news-content h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.news-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #1e40af;
}

/* Ad Banners */
.ad-banners {
    padding: 3rem 0;
    background: #f8fafc;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.ad-banner {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ad-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.primary-ad .ad-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.secondary-ad .ad-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ad-text h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ad-text p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ad-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-1px);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 3rem 0 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fbbf24;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .diji {
    color: #dc2626;
    font-size: 2rem;
    font-weight: 800;
}

.footer-logo .pharma {
    color: #3b82f6;
    font-size: 2rem;
    font-weight: 800;
}

.pill-icon-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-footer .pill {
    width: 30px;
    height: 15px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
}

.pill-icon-footer .pill-half {
    width: 50%;
    height: 100%;
}

.pill-icon-footer .red {
    background: #dc2626;
}

.pill-icon-footer .blue {
    background: #3b82f6;
}

.footer-description {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e2e8f0;
}

.contact-item i {
    color: #fbbf24;
    width: 20px;
}

/* Social Media Links */
.social-media {
    margin-top: 1.5rem;
}

.social-media h5 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.facebook:hover {
    background: #166fe5;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.youtube:hover {
    background: #cc0000;
}

.social-link i {
    font-size: 1.1rem;
}

/* AI Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.user-message .message-avatar {
    background: #1e3a8a;
    margin-right: 0;
    margin-left: 0.5rem;
    order: 2;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: #f1f5f9;
    color: #334155;
}

.user-message .message-content {
    background: #1e3a8a;
    color: white;
}

.chatbot-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-size: 0.9rem;
}

.chatbot-input input:focus {
    border-color: #667eea;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e3a8a;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    background: #1e40af;
    transform: scale(1.05);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fbbf24;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-bottom-links {
        gap: 1rem;
    }
}

/* Media Upload Section */
.media-upload-section {
    background: #ffffff;
    padding: 4rem 0;
    margin: 2rem 0;
}

.upload-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.upload-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.upload-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.upload-header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.banner-upload .upload-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.video-upload .upload-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.upload-header-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.upload-header-section p {
    color: #64748b;
    font-size: 0.95rem;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-zone:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-zone.dragover {
    border-color: #3b82f6;
    background: #f0f9ff;
    transform: scale(1.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-placeholder i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upload-placeholder span {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 500;
}

.file-formats {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.upload-preview {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.upload-preview img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-preview, .btn-delete {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-preview {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.upload-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-save, .btn-cancel {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* First Advertisement Area */
.first-ad-section {
    background: #ffffff;
    padding: 2rem 0;
}

.first-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.first-ad-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.first-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Second Advertisement Area */
.second-ad-section {
    background: #ffffff;
    padding: 2rem 0;
}

.second-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.second-ad-banner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.second-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Advertisement Placeholders */
.ad-image-placeholder {
    width: 100%;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
}

.first-ad-banner .ad-image-placeholder,
.second-ad-banner .ad-image-placeholder {
    /* Height handled by absolute positioning and aspect ratio */
}

.ad-image-placeholder:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
    color: #3b82f6;
}

.ad-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ad-image-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dimensions {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Video Area */
.video-section {
    background: #ffffff;
    padding: 4rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-header {
    text-align: center;
    margin-bottom: 3rem;
}

.video-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.video-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.video-banner {
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.video-placeholder:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #3b82f6;
}

.video-placeholder i {
    font-size: 4rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.video-placeholder span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.video-dimensions, .supported-formats {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.video-player-container {
    padding: 2rem;
    background: #ffffff;
}

.video-player-container video {
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.video-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.video-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.video-info p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

.video-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.video-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.video-btn.delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.video-btn.delete:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Playlist Controls */
.playlist-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.playlist-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.playlist-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.playlist-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.video-counter {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    min-width: 80px;
    text-align: center;
}

/* Video Wrapper and Play Overlay */
.video-wrapper {
    position: relative;
    width: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.play-button i {
    font-size: 2rem;
    color: white;
    margin-left: 4px; /* Slight offset for play icon centering */
}

.play-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.video-upload-form {
    background: #f8fafc;
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
}

.video-upload-form .form-group {
    margin-bottom: 1.5rem;
}

.video-upload-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.video-upload-form input, .video-upload-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.video-upload-form input:focus, .video-upload-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Advertisement Carousel Styles */
.first-ad-section, .second-ad-section {
    margin: 40px 0;
}

.first-ad-container, .second-ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-carousel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio for square */
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* This rule is for old carousel placeholders - will be overridden by absolute positioned version */

.ad-image-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.ad-image-placeholder span {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ad-image-placeholder .dimensions {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 5px;
}

.carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover:not(.active) {
    background: rgba(255,255,255,0.6);
}

/* Mobile responsiveness for carousels */
@media (max-width: 768px) {
    .first-ad-container, .second-ad-container {
        padding: 0 10px;
    }
    
    .carousel-wrapper {
        /* Height determined by .ad-image-container aspect ratio */
    }
    
    .ad-image-placeholder i {
        font-size: 32px;
    }
    
    .ad-image-placeholder span {
        font-size: 16px;
    }
    
    .carousel-controls {
        gap: 15px;
        padding: 8px 15px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

/* Side Ads */
.side-ads {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.side-ad-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-ad-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.side-ad-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.side-ad-header i {
    color: #fbbf24;
}

.side-ad-content h4 {
    color: #1e40af;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.side-ad-content p {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.side-ad-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.side-ad-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

/* Responsive Design */
/* Desktop - ensure login widget is visible */
@media (min-width: 1025px) {
    .header-banner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .login-widget {
        display: block !important;
        position: relative;
        top: 0;
        right: 0;
    }
}

@media (max-width: 1024px) {
    .side-ads {
        display: none;
    }
    
    .left-side-banner {
        display: none;
    }
    
    .first-ad-banner .ad-image-placeholder,
    .second-ad-banner .ad-image-placeholder {
        /* Height handled by absolute positioning and aspect ratio */
    }
    
    .video-header h2 {
        font-size: 2rem;
    }
    
    .video-placeholder {
        padding: 3rem 1.5rem;
    }
    
    .video-placeholder i {
        font-size: 3rem;
    }
    
    .video-placeholder span {
        font-size: 1.25rem;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .upload-header h2 {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .top-banner-content {
        padding: 0 1rem;
    }
    
    .banner-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .first-ad-container, .second-ad-container {
        padding: 0 1rem;
    }
    
    .first-ad-banner .ad-image-placeholder,
    .second-ad-banner .ad-image-placeholder {
        /* Height handled by absolute positioning and aspect ratio */
    }
    
    .video-container {
        padding: 0 1rem;
    }
    
    .video-header h2 {
        font-size: 1.75rem;
    }
    
    .video-placeholder {
        padding: 2rem 1rem;
    }
    
    .video-placeholder i {
        font-size: 2.5rem;
    }
    
    .video-placeholder span {
        font-size: 1rem;
    }
    
    .video-upload-form {
        padding: 1.5rem;
    }
    
    .ad-image-placeholder i {
        font-size: 2rem;
    }
    
    .ad-image-placeholder span {
        font-size: 1rem;
    }
    
    .dimensions {
        font-size: 0.75rem;
    }
}
    
    .header-banner {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .login-widget {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }
    
    .blog-post.featured {
        grid-column: span 1;
        display: block;
    }
    
    .banner-ad-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .ad-banners {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-banner {
        padding: 2rem 0;
    }
    
    .header-banner-content {
        padding: 1.5rem;
        min-height: 300px;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        border-radius: 12px;
    }
    
    .header-content {
        text-align: center;
    }
    
    .header-text {
        text-align: center;
    }
    
    .logo-header {
        justify-content: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .header-text p {
        font-size: 1rem;
    }
    
    .profile-nav-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .profile-nav-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .header-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .visual-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .logo-header .diji,
    .logo-header .pharma {
        font-size: 2rem;
    }
    
    .hero-text-center h2 {
        font-size: 2rem;
    }
    
    .hero-text-center p {
        font-size: 1rem;
    }
    
    .sponsor-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .news-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        max-width: 400px;
    }
    
    .stat-box {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Header Mobile Styles */
    .nav-menu, .nav-auth {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
    }
    
    .header-text p {
        font-size: 1.1rem;
    }
    
    .profile-nav-buttons {
        justify-content: center;
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .profile-nav-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .profile-nav-btn span {
        display: none;
    }
    
    .profile-nav-btn i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .header-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-visual {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .visual-element {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .platform-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-graphic {
        width: 250px;
        height: 250px;
    }
    
    .graphic-element {
        padding: 1rem;
    }
    
    .graphic-element i {
        font-size: 1.5rem;
    }
    
    .ad-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 1rem;
    }
    
    .header-banner {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .ad-banners {
        padding: 2rem 0;
    }
    
    
    .login-widget {
        padding: 1rem;
    }
    
    .login-widget .role-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .login-widget .location-group {
        flex-direction: column;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    background: #1e3a8a;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: #059669;
}

.notification.warning {
    background: #d97706;
}

.notification.error {
    background: #dc2626;
}

.notification.info {
    background: #0ea5e9;
}

/* Form Section */
.form-section {
    padding: 40px;
    background: white;
}

.form-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 5px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button.active {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.tab-button:hover:not(.active) {
    background: #e2e8f0;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.5em;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.location-group {
    display: flex;
    gap: 15px;
}

.input-group.half {
    flex: 1;
    margin-bottom: 20px;
}

.user-type {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.user-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
}

.user-type input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
}

.register-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-btn.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.type-btn:hover:not(.active) {
    border-color: #3b82f6;
    background: #f1f5f9;
}

.register-fields {
    display: none;
}

.register-fields.active {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #dc2626 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .logo-section {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 2em;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .location-group {
        flex-direction: column;
        gap: 0;
    }
    
    .input-group.half {
        margin-bottom: 20px;
    }
    
    .register-type-selector {
        flex-direction: column;
    }
    
    .user-type {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .tab-button {
        padding: 10px;
        font-size: 14px;
    }
    
    .input-group input,
    .input-group select {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Validation Styles */
.input-group.error input,
.input-group.error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-group.success input,
.input-group.success select {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    margin-left: 45px;
}

/* Role Selection Styles */
.role-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.role-label {
    display: block;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e2e8f0;
    font-weight: 500;
    color: #64748b;
}

.role-options label:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.role-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    margin: 0;
}

.role-options label:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.role-options span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.role-options i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Enhanced mobile responsiveness for roles */
@media (max-width: 768px) {
    .role-options {
        gap: 10px;
    }
    
    .role-options label {
        padding: 10px 12px;
        font-size: 13px;
    }
    
}

@media (max-width: 480px) {
    .role-selector {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    
    .role-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .role-options span {
        font-size: 13px;
    }
    
    .role-options i {
        font-size: 14px;
        width: 18px;
    }
}

/* Advertisement Images */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.ad-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.ad-image:hover {
    transform: scale(1.02);
}

.ad-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

.ad-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.ad-image-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ad-image-placeholder .dimensions {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Side Advertisement Images */
.side-ad-image-container {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.side-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.side-ad-image:hover {
    transform: scale(1.05);
}

/* Responsive Advertisement Images */
@media (max-width: 768px) {
    .ad-image-container {
        /* Aspect ratio remains 1:1, no height override needed */
    }
    
    .ad-image-placeholder {
        /* Uses absolute positioning, no height override needed */
    }
    
    .side-ad-image-container {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .ad-image-container {
        /* Aspect ratio remains 1:1, no height override needed */
    }
    
    .ad-image-placeholder {
        /* Uses absolute positioning, no height override needed */
    }
    
    .carousel-wrapper {
        /* Height will adjust based on .ad-image-container aspect ratio */
    }
    
    .ad-image-placeholder i {
        font-size: 2rem;
    }
    
    .side-ad-image-container {
        height: 80px;
    }
}

/* Fixed Profile Navigation Sidebar */
.profile-nav-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 200px;
}

.profile-nav-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.profile-nav-card h3 {
    color: #1e40af;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-nav-card h3 i {
    color: #3b82f6;
}

.profile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.profile-nav-item:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.profile-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive Design for Profile Navigation */
@media (max-width: 1200px) {
    .profile-nav-sidebar {
        left: 10px;
        width: 180px;
    }
    
    .profile-nav-card {
        padding: 15px;
    }
    
    .profile-nav-item {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .profile-nav-sidebar {
        display: none;
    }
    
    .main-content, .main {
        margin-left: 0 !important;
    }
}

/* Main content margin adjustment for profile nav */
.main-content, .main {
    margin-left: 240px;
}

@media (max-width: 1200px) {
    .main-content, .main {
        margin-left: 210px;
    }
}

/* Certificates Styles */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.certificate-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.certificate-preview {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.certificate-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    position: relative;
}

.certificate-seal {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    border: 3px solid white;
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.2em;
    font-weight: 600;
}

.certificate-details {
    color: #6b7280;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.certificate-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.completion-date,
.certificate-score {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85em;
}

.certificate-score {
    color: #10b981;
    font-weight: 600;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

/* Rewards Styles */
.rewards-overview {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f3e8ff 0%, #a855f7 100%);
    border-radius: 15px;
    border: 1px solid #9333ea;
}

.rewards-overview h3 {
    color: #6b21a8;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rewards-overview h3::before {
    content: "🎁";
    font-size: 1.1em;
}

.rewards-overview p {
    color: #7c2d92;
    font-size: 1em;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.reward-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.reward-item.available {
    border-left: 4px solid #10b981;
}

.reward-item.unavailable {
    border-left: 4px solid #6b7280;
    opacity: 0.7;
}

.reward-item.insufficient {
    border-left: 4px solid #f59e0b;
}

.reward-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reward-preview {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.reward-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
}

.reward-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 700;
    color: white;
    background: #10b981;
}

.reward-badge.promo {
    background: #f59e0b;
}

.reward-badge.premium {
    background: #8b5cf6;
}

.reward-badge.sold-out {
    background: #ef4444;
}

.reward-info {
    flex: 1;
}

.reward-info h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.reward-details {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.reward-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.reward-cost {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.9em;
}

.reward-stock {
    color: #6b7280;
    font-size: 0.85em;
}

.claim-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.claim-btn.available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.claim-btn.available:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

.claim-btn.unavailable {
    background: #6b7280;
    color: white;
    cursor: not-allowed;
}

.claim-btn.insufficient {
    background: #f59e0b;
    color: white;
    cursor: not-allowed;
}

.points-needed {
    margin-top: 8px;
}

.points-needed small {
    color: #f59e0b;
    font-weight: 500;
}

/* Responsive Adjustments for Certificates and Rewards */
@media (max-width: 768px) {
    .certificates-grid,
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-item,
    .reward-item {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-meta {
        justify-content: center;
    }
    
    .reward-meta {
        justify-content: center;
        gap: 15px;
    }
}

/* Certificate Tab Content Styles */
.cert-tab-content {
    display: none;
    padding: 30px;
}

.cert-tab-content.active {
    display: block;
}

/* Personal Education Styles */
.personal-education-overview {
    padding: 20px 0;
}

.education-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card.completed { border-left-color: #10b981; }
.stat-card.ongoing { border-left-color: #f59e0b; }
.stat-card.upcoming { border-left-color: #3b82f6; }
.stat-card.points { border-left-color: #8b5cf6; }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.stat-card.completed .stat-icon { background: #10b981; }
.stat-card.ongoing .stat-icon { background: #f59e0b; }
.stat-card.upcoming .stat-icon { background: #3b82f6; }
.stat-card.points .stat-icon { background: #8b5cf6; }

.current-education {
    margin-top: 30px;
}

.education-progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-info {
    flex: 1;
}

.progress-info h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
}

.progress-info p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9em;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-weight: 600;
    color: #3b82f6;
    min-width: 40px;
    text-align: center;
}

.continue-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.continue-btn:hover {
    background: #059669;
}

/* Success Report Styles */
.success-report-overview {
    padding: 20px 0;
}

.report-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 1px solid #e5e7eb;
}

.report-header h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 2em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.report-header h3::before {
    content: "📊";
    font-size: 1.2em;
}

.report-header p {
    color: #64748b;
    font-size: 1.1em;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.success-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.overview-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
}

.overview-stats {
    flex: 1;
}

.main-stat {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.stat-trend {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.stat-trend.positive {
    background: #dcfce7;
    color: #16a34a;
}

.stat-trend.neutral {
    background: #f1f5f9;
    color: #64748b;
}

.detailed-results {
    margin-top: 30px;
}

.detailed-results h4 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid #10b981;
}

.result-item.excellent {
    border-left-color: #10b981;
}

.result-item.good {
    border-left-color: #f59e0b;
}

.result-item.needs-improvement {
    border-left-color: #ef4444;
}

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.3em;
}

.result-info {
    flex: 1;
}

.result-info h5 {
    color: #1f2937;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.result-info p {
    color: #6b7280;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.result-breakdown {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quiz-score,
.assignment-score {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

.grade {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.grade.excellent {
    background: #dcfce7;
    color: #16a34a;
}

.grade.good {
    background: #fef3c7;
    color: #d97706;
}

.grade.needs-improvement {
    background: #fee2e2;
    color: #dc2626;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.detail {
    background: #3b82f6;
    color: white;
}

.action-btn.detail:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Performance Chart Styles */
.performance-chart {
    margin-top: 40px;
}

.chart-header {
    text-align: center;
    margin-bottom: 30px;
}

.chart-header h4 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.4em;
}

.chart-header p {
    color: #6b7280;
    font-size: 0.9em;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.quiz {
    background: #3b82f6;
}

.legend-color.points {
    background: #10b981;
}

.chart-area {
    display: flex;
    height: 300px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.chart-y-axis {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 20px 10px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.8em;
    color: #6b7280;
    min-width: 50px;
}

.chart-graph {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.chart-grid {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line {
    height: 1px;
    background: #f3f4f6;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    gap: 15px;
    z-index: 1;
    position: relative;
}

.month-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    position: relative;
}

.month-group .bar {
    width: 20px;
    border-radius: 3px 3px 0 0;
    margin: 0 2px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.bar.quiz {
    background: linear-gradient(to top, #2563eb, #3b82f6);
}

.bar.points {
    background: linear-gradient(to top, #059669, #10b981);
}

.bar:hover {
    transform: scaleY(1.05);
    filter: brightness(1.1);
}

.bar:hover::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
}

.bar.quiz:hover::before {
    content: attr(data-value) "%";
}

.month-label {
    margin-top: 10px;
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 500;
}

.chart-summary {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-label {
    color: #6b7280;
    font-size: 0.9em;
}

.summary-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1em;
}

/* Responsive Chart */
@media (max-width: 768px) {
    .chart-legend {
        flex-direction: column;
        gap: 15px;
    }
    
    .chart-area {
        height: 250px;
    }
    
    .chart-bars {
        gap: 8px;
    }
    
    .month-group .bar {
        width: 15px;
    }
    
    .chart-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Personal Certificates Styles */
.personal-certificates {
    padding: 20px 0;
}

/* Employee Certificates Styles */
.employee-certificates-content {
    padding: 20px 0;
    display: none;
}

.employee-certificates-content.active {
    display: block;
}

.employee-certificates {
    padding: 20px 0;
    display: none;
}

.employee-certificates.active {
    display: block;
}

.employee-certificates .certificates-header,
.employee-certificates-content .certificates-header {
    text-align: left;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 15px;
    border: 1px solid #f59e0b;
}

.employee-certificates .certificates-header h4,
.employee-certificates-content .certificates-header h4 {
    color: #92400e;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-certificates .certificates-header h4::before,
.employee-certificates-content .certificates-header h4::before {
    content: "👨‍🎓";
    font-size: 1.1em;
}

.employee-certificates .certificates-summary,
.employee-certificates-content .certificates-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.employee-certificates .summary-item,
.employee-certificates-content .summary-item {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.9em;
    color: #b45309;
    font-weight: 500;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.employee-certificates .summary-item strong,
.employee-certificates-content .summary-item strong {
    color: #92400e;
    font-weight: 700;
}

.employee-certificates .certificates-grid,
.employee-certificates-content .certificates-grid {
    padding: 0 20px !important;
    margin-bottom: 30px !important;
}

.certificates-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 15px;
    border: 1px solid #f59e0b;
}

.certificates-header h3 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.certificates-header h3::before {
    content: "🏆";
    font-size: 1.1em;
}

.certificates-header p {
    color: #b45309;
    font-size: 1em;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

.certificates-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-stat .stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 5px;
}

.summary-stat .stat-label {
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 500;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.certificate-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    opacity: 0.1;
    border-radius: 0 15px 0 100%;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.certificate-card.earned {
    border-left-color: #10b981;
}

.certificate-preview {
    position: relative;
    flex-shrink: 0;
}

.certificate-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    position: relative;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.certificate-card.earned .certificate-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.certificate-seal {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.certificate-details {
    flex: 1;
}

.certificate-details h4 {
    color: #1f2937;
    margin: 0 0 8px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.certificate-subtitle {
    color: #6b7280;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    font-style: italic;
}

.certificate-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 0.85em;
}

.meta-item i {
    color: #6b7280;
    width: 14px;
}

.certificate-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn.download {
    background: #3b82f6;
    color: white;
}

.action-btn.download:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.action-btn.share {
    background: #10b981;
    color: white;
}

.action-btn.share:hover {
    background: #059669;
    transform: translateY(-1px);
}

.action-btn.verify {
    background: #f59e0b;
    color: white;
}

.action-btn.verify:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* Certificate Progress */
.certificate-progress {
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.certificate-progress h4 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certificate-progress h4::before {
    content: "⏳";
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.progress-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Responsive Certificates */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-metadata {
        justify-content: center;
    }
    
    .certificate-actions {
        justify-content: center;
    }
    
    .certificates-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Personal Rewards Styles */
.personal-rewards {
    padding: 20px 0;
}

.rewards-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 20px;
    background: linear-gradient(135deg, #ddd6fe 0%, #8b5cf6 100%);
    border-radius: 15px;
    border: 1px solid #7c3aed;
}

.rewards-header h3 {
    color: #5b21b6;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rewards-header h3::before {
    content: "🎁";
    font-size: 1.1em;
}

.rewards-header p {
    color: #6d28d9;
    font-size: 1em;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

.reward-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #faf5ff;
    border-radius: 12px;
    border: 1px solid #e9d5ff;
}

.reward-summary .summary-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
    border: 1px solid #e9d5ff;
}

.reward-summary .stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #7c3aed;
    margin-bottom: 5px;
}

.reward-summary .stat-label {
    color: #6b7280;
    font-size: 0.9em;
    font-weight: 500;
}

.available-rewards {
    margin-bottom: 40px;
}

.available-rewards h4 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.available-rewards h4::before {
    content: "✨";
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.reward-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #8b5cf6;
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    opacity: 0.1;
    border-radius: 0 15px 0 100%;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.reward-card.earned {
    border-left-color: #10b981;
}

.reward-card.earned::before {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.reward-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.reward-card.earned .reward-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.reward-info {
    text-align: center;
    margin-bottom: 15px;
}

.reward-info h5 {
    color: #1f2937;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.reward-info p {
    color: #6b7280;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.reward-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.reward-status.earned {
    background: #dcfce7;
    color: #16a34a;
}

.use-reward-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.use-reward-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.used-rewards h4 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.used-rewards h4::before {
    content: "📋";
}

.used-rewards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.used-reward-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e5e7eb;
}

.used-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.3em;
    flex-shrink: 0;
}

.used-info {
    flex: 1;
}

.used-info h5 {
    color: #1f2937;
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: 600;
}

.used-info p {
    color: #6b7280;
    margin: 0;
    font-size: 0.85em;
}

.used-badge {
    padding: 6px 12px;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.8em;
    font-weight: 500;
    flex-shrink: 0;
}

/* Responsive Rewards */
@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-summary {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .used-reward-item {
        flex-direction: column;
        text-align: center;
    }
    
    .used-info {
        text-align: center;
    }
}

/* Education Categories Grid Styles */
.education-categories {
    padding: 20px 0;
}

.education-categories h3 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.education-category {
    background: white;
    border-radius: 15px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.education-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.category-header.completed {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-bottom-color: #10b981;
}

.category-header.ongoing {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-bottom-color: #f59e0b;
}

.category-header.upcoming {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-bottom-color: #3b82f6;
}

.category-header i {
    font-size: 1.4em;
}

.category-header.completed i {
    color: #059669;
}

.category-header.ongoing i {
    color: #d97706;
}

.category-header.upcoming i {
    color: #2563eb;
}

.category-header h4 {
    color: #1f2937;
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.category-count {
    background: rgba(0, 0, 0, 0.1);
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.education-items {
    padding: 15px;
}

.education-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    justify-content: space-between;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item:hover {
    border-color: #d1d5db;
    background: white;
    transform: translateX(3px);
}

.education-item.completed {
    border-left: 4px solid #10b981;
}

.education-item.ongoing {
    border-left: 4px solid #f59e0b;
}

.education-item.upcoming {
    border-left: 4px solid #3b82f6;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.education-item.completed .item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.education-item.ongoing .item-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.education-item.upcoming .item-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.item-info {
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-info h5 {
    color: #1f2937;
    margin: 0 0 5px 0;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

.item-info p {
    color: #6b7280;
    margin: 0 0 10px 0;
    font-size: 0.85em;
    line-height: 1.4;
    text-align: center;
}

.item-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: center;
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
}

.status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.completion-date {
    font-size: 0.75em;
    color: #9ca3af;
    text-align: center;
}

.item-progress {
    margin-bottom: 12px;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.item-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.item-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75em;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

.item-schedule {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    width: 100%;
    align-items: center;
    text-align: center;
    margin-top: auto;
}

.schedule-date {
    font-size: 0.85em;
    color: #1f2937;
    font-weight: 600;
    text-align: center;
}

.schedule-duration {
    font-size: 0.75em;
    color: #6b7280;
    text-align: center;
}

.continue-btn, .register-btn, .completed-btn {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.continue-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

.register-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.register-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.completed-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.completed-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

/* Responsive Design for Education Grid */
@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .education-category {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .education-categories h3 {
        font-size: 1.4em;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .category-header h4 {
        font-size: 1.1em;
    }
    
    .education-items {
        padding: 12px;
    }
    
    .education-item {
        padding: 12px;
    }
}


/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 70%;
    max-width: 650px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.close-modal {
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0 5px;
}

.close-modal:hover {
    color: #fbbf24;
}

.modal-body {
    padding: 15px;
    max-height: 85vh;
    overflow-y: auto;
}

.video-container {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 750px;
    border: none;
    border-radius: 10px;
}

.video-info {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.video-info p {
    margin: 8px 0;
    color: #374151;
    font-size: 0.95em;
    line-height: 1.5;
}

.video-info strong {
    color: #1f2937;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn.secondary {
    background: #6b7280;
    color: white;
}

.modal-btn.secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.modal-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modal-btn.primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-content {
        width: 75%;
        max-width: 700px;
        margin: 2% auto;
        max-height: 92vh;
    }
    
    .video-container iframe {
        height: 650px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 85%;
        margin: 3% auto;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2em;
    }
    
    .modal-body {
        padding: 12px;
        max-height: 75vh;
    }
    
    .video-container iframe {
        height: 550px;
    }
    
    .modal-footer {
        padding: 12px 15px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .video-container iframe {
        height: 500px;
    }
    
    .modal-header h3 {
        font-size: 1.1em;
    }
    
    .close-modal {
        font-size: 1.5em;
    }
    
    .modal-body {
        padding: 10px;
        max-height: 80vh;
    }
}

/* Force padding for employee certificates - Override specificity */
#imam-certificates .certificates-grid,
#sena-certificates .certificates-grid,
#tugba-certificates .certificates-grid,
#alev-certificates .certificates-grid {
    padding: 0 20px !important;
}

/* Profile Section Styles */
.content-section {
    min-height: 100vh;
    padding: 40px 20px;
    background: #f8fafc;
}

.content-section .section-header {
    text-align: left;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.content-section .section-header h1 {
    color: #1e293b;
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.content-section .section-header h1 i {
    color: #1e3a8a;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1em;
    margin-top: 10px;
}

.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-avatar-section {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2em;
}

.profile-avatar-section h3 {
    margin-bottom: 5px;
}

.profile-role {
    opacity: 0.9;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.profile-workplace {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.profile-workplace i {
    color: rgba(255, 255, 255, 0.8);
}

.education-progress-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.education-progress-card h4 {
    color: #1e293b !important;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.education-progress-card h4 i {
    color: #1e3a8a !important;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 0.85em;
    color: #64748b !important;
    font-weight: 500;
}

.progress-value {
    font-size: 0.85em;
    color: #1e293b !important;
    font-weight: 600;
}

.profile-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.tab-btn.active {
    color: #1e3a8a;
    background: #f8fafc;
    border-bottom: 2px solid #1e3a8a;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.profile-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fefefe;
}

.form-section h4 {
    color: #1e293b;
    font-size: 1.1em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.form-section h4 i {
    color: #1e3a8a;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input[readonly],
.form-group select[disabled] {
    background: #f9fafb;
    color: #6b7280;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #6b7280;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.setting-item:hover {
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.setting-info h5 {
    color: #1e293b;
    font-size: 1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.setting-info small {
    color: #6b7280;
    font-size: 0.85em;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1e3a8a;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

/* Education Progress Card - More Specific Selectors - CORRECT COLORS */
#profile-section .profile-sidebar .profile-avatar-section .education-progress-card h4 {
    color: #1e293b !important;
}

#profile-section .profile-sidebar .profile-avatar-section .education-progress-card h4 i {
    color: #1e3a8a !important;
}

#profile-section .profile-sidebar .profile-avatar-section .education-progress-card .progress-item .progress-label {
    color: #64748b !important;
}

#profile-section .profile-sidebar .profile-avatar-section .education-progress-card .progress-item .progress-value {
    color: #1e293b !important;
}

/* CORRECT COLORS FOR PROGRESS CARD - DARK TEXT ON LIGHT BACKGROUND */
.education-progress-card * {
    color: #1e293b !important;
}

.education-progress-card h4,
.education-progress-card h4 *,
.education-progress-card .progress-label,
.education-progress-card .progress-value {
    color: #1e293b !important;
}

.education-progress-card {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Profile Achievements Section */
.profile-achievements {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.profile-achievements h4 {
    color: white !important;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.profile-achievements h4 i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.profile-badge {
    background: rgba(30, 58, 138, 0.8);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-badge i {
    font-size: 0.8em;
    color: #fbbf24 !important;
}

.profile-badge i.fa-star {
    color: #fbbf24 !important;
}

.profile-badge i.fa-fire {
    color: #f87171 !important;
}

.profile-badge i.fa-trophy {
    color: #a78bfa !important;
}

.profile-badge i.fa-medal {
    color: #34d399 !important;
}

.profile-badge i.fa-crown {
    color: #fbbf24 !important;
}

.profile-certificates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certificate-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 15px !important;
    background: rgba(30, 58, 138, 0.7) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 8px !important;
}

.certificate-item i {
    color: #fbbf24 !important;
    font-size: 1.1em !important;
    width: 18px !important;
    flex-shrink: 0 !important;
}

.certificate-item div {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.certificate-item span {
    font-size: 0.85em !important;
    color: white !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.certificate-item small {
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
}

/* Extra specific selectors for certificates */
.profile-achievements .profile-certificates .certificate-item {
    background: rgba(30, 58, 138, 0.8) !important;
    color: white !important;
}

.profile-achievements .profile-certificates .certificate-item span {
    color: white !important;
}

.profile-achievements .profile-certificates .certificate-item small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 50%;
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .content-section .section-header h1 {
        font-size: 2em;
        flex-direction: column;
        gap: 10px;
    }
}


