:root {
    --primary-color: #003087;
    --secondary-color: #69b3e7;
    --accent-color: #d50032;
    --light-gray: #f5f7fa;
    --dark-gray: #63666a;
    --text-color: #222;
    --transition-speed: 0.2s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Accessibility Helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Styles */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--secondary-color);
}

/* Dropdown Styles - Click to Open */
.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
}

.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

.dropdown-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus {
    background-color: var(--light-gray);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 20px;
}

.bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.bar:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn-login:hover,
.btn-login:focus {
    background: rgba(255,255,255,0.1);
}

.btn-register {
    background: var(--accent-color);
    color: white;
    margin-left: 1rem;
}

.btn-register:hover,
.btn-register:focus {
    background: #b00028;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #b00028;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

.btn-link:hover,
.btn-link:focus {
    text-decoration: underline;
}

/* Hero Carousel */
.hero-carousel {
    height: 500px;
    background: linear-gradient(rgba(0, 48, 135, 0.7), rgba(0, 48, 135, 0.7)), 
                url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 0;
    background: var(--light-gray);
    flex-wrap: wrap;
}

.link-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Forum Categories */
.forum-categories {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed);
    will-change: transform;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Social Feeds */
.social-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.social-feed {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.social-feed h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.facebook-feed {
    min-height: 500px;
    overflow: hidden;
}

.linkedin-post {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-post iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Newsletter */
.newsletter {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--secondary-color);
    outline: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color var(--transition-speed);
}

.social-links a:hover,
.social-links a:focus {
    color: var(--secondary-color);
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }
    
    .logo {
        order: 0;
        margin-right: auto;
    }
    
    .auth-buttons {
        order: 2;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: 1000px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link,
    .dropdown-toggle {
        width: 100%;
        padding: 0.75rem 0;
        text-align: left;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        display: none;
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }
    
    .dropdown-link {
        color: white;
        padding: 0.5rem 0;
    }
    
    .dropdown-link:hover,
    .dropdown-link:focus {
        background: none;
        text-decoration: underline;
    }
    
    .social-activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }
    
    .link-card {
        width: 100%;
        max-width: 400px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .facebook-feed,
    .linkedin-post {
        min-height: 300px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #f0f0f0;
    }
    
    :root {
        --light-gray: #2a2a2a;
        --text-color: #f0f0f0;
    }
    
    .link-card,
    .category-card,
    .social-feed {
        background: #1e1e1e;
        color: #f0f0f0;
    }
    
    .dropdown-menu {
        background: #2a2a2a;
    }
    
    .dropdown-link {
        color: #f0f0f0;
    }
    
    .newsletter-form input {
        background: #2a2a2a;
        color: #f0f0f0;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .quick-links,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
 /* Add these styles to your existing styles.css */

/* Auth Forms Styling */
.auth-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.auth-form {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e5eb;
}

.auth-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(105, 179, 231, 0.2);
    background-color: white;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.btn-primary:hover {
    background-color: #b00028;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(213, 0, 50, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #4da1d8;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--dark-gray);
}

.auth-link a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Profile Page Styling */
.profile-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e1e5eb;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.profile-title {
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.profile-company {
    color: var(--dark-gray);
    font-size: 1rem;
}

.profile-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e1e5eb;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: flex-end;
}

/* File Upload Styling */
.file-upload {
    position: relative;
    margin-bottom: 1.75rem;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    text-align: center;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--secondary-color);
    background-color: #f0f7fc;
}

.file-upload-label span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-form,
    .profile-content {
        padding: 1.75rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.75rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .auth-form,
    .profile-content {
        background: #1e1e1e;
        border-color: #333;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .file-upload-label {
        background-color: #2a2a2a;
        border-color: #444;
        color: #f0f0f0;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        background-color: #333;
    }
    
    .file-upload-label:hover {
        background-color: #333;
    }
    
    .form-group label {
        color: #ccc;
    }
   /* Thread View */
.thread-view {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.thread-original {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.thread-replies {
    padding: 2rem;
}

.thread-reply-form {
    padding: 2rem;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Post Styles */
.post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-author-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-author-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-picture.placeholder {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.post-author-info h4 {
    margin: 0;
    color: var(--primary-color);
}

.post-author-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.post-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.post-category {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 1rem;
}

.post-date {
    color: var(--dark-gray);
}

.thread-form textarea {
    min-height: 200px;
} 

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
    margin-left: auto;
    padding-right: 20px;
}

.notification-icon {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
}

.notification-dropdown-content.show {
    display: block;
}

.notification-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
}

.notification-list {
    padding: 0;
}

.notification-item {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item p {
    margin: 0 0 0.25rem 0;
}

.notification-item small {
    color: var(--dark-gray);
    font-size: 0.8rem;
}

.no-notifications {
    padding: 1rem;
    text-align: center;
    color: var(--dark-gray);
}

/* Notifications Page */
.notifications-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.notifications-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.notification-content {
    flex: 1;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-left: 1rem;
}

.notification-actions {
    margin-bottom: 1rem;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .notification-dropdown-content {
        background-color: #2a2a2a;
        border: 1px solid #444;
    }
    
    .notification-item {
        color: #f0f0f0;
    }
    
    .notification-item:hover {
        background: #333;
    }
    
    .notification-item.unread {
        background: #1a2a3a;
    }
    
    .notifications-list {
        background: #2a2a2a;
    }

}