/*
Theme Name: Cyxor Learning
Theme URI: https://cyxorlearning.com
Author: Cyxor Team
Author URI: https://cyxorlearning.com
Description: A professional WordPress theme for an educational platform focused on cybersecurity training.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyxor-learning
Tags: education, cybersecurity, responsive, accessible
*/

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Primary Colors */
:root {
    --secure-slate: #1A2332;
    --digital-cyan: #00D4FF;
    --deep-space: #0F1419;
    --learning-blue: #4A90E2;
    --success-green: #28A745;
    --alert-orange: #FF6B35;
    --neutral-gray: #6C757D;
    --pure-white: #FFFFFF;
    --black: #000000;
    --dark-gray: #333333;
    --footer-blue: #2C5282;
}

/* Body and Global Styles */
body, html {
    background-color: var(--deep-space);
    color: var(--pure-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--secure-slate) 0%, var(--footer-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--pure-white);
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1;
}

.brand-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    font-weight: 400;
}

/* Desktop Navigation */
.desktop-navigation {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--digital-cyan);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Dropdown Menus */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 220px;
    z-index: 100;
    list-style: none;
    padding: 8px 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--digital-cyan);
    padding-left: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    background: var(--dark-gray);
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--digital-cyan);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(74, 144, 226, 0.8));
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--learning-blue), rgba(74, 144, 226, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--pure-white);
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--black);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 30px 20px;
}

.mobile-navigation {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav-link {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--digital-cyan);
    padding-left: 10px;
}

.mobile-dropdown {
    margin-bottom: 8px;
}

.mobile-dropdown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    color: var(--digital-cyan);
}

.mobile-dropdown-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 8px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
    padding: 8px 0;
}

.mobile-dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--digital-cyan);
    padding-left: 20px;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn-secondary {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    background: var(--dark-gray);
    transition: all 0.3s ease;
}

.mobile-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--digital-cyan);
}

.mobile-btn-primary {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(74, 144, 226, 0.8));
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.mobile-btn-primary:hover {
    background: linear-gradient(135deg, var(--learning-blue), rgba(74, 144, 226, 0.95));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--secure-slate) 0%, var(--footer-blue) 100%);
    color: var(--pure-white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--pure-white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-section ul li a:hover {
    color: var(--pure-white);
    padding-left: 8px;
}

/* Company Info Section */
.company-info .footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--pure-white);
}

.footer-brand .tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0 0;
    font-style: italic;
}

.company-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-info strong {
    color: var(--pure-white);
}

.contact-info a {
    color: var(--digital-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

/* Trust Indicators */
.footer-trust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.security-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 20px;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--pure-white);
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Card Styling for Pages and Posts */
.course-card, .post-card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--secure-slate);
}

/* Syllabus Toggle */
#syllabus-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#syllabus-content[aria-expanded="true"] {
    max-height: 1000px;
}

/* Accessibility Enhancements */
a:focus, button:focus, input:focus,
.footer-section a:focus, .social-link:focus,
.contact-info a:focus, .footer-legal a:focus {
    outline: 2px solid var(--digital-cyan);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .desktop-navigation {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-trust {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    .footer-brand h3 {
        font-size: 20px;
    }
    .company-description {
        font-size: 14px;
    }
    .footer-section h4 {
        font-size: 16px;
    }
    .footer-legal {
        justify-content: center;
    }
    .security-bad