:root {
            /* Color Palette */
            --primary-color: #3a86ff;
            --primary-dark: #2667cc;
            --secondary-color: #4cc9f0;
            --accent-color: #f72585;
            --success-color: #4ade80;
            --warning-color: #fbbf24;
            --danger-color: #ef4444;
            --dark-color: #1e293b;
            --grey-50: #f8fafc;
            --grey-100: #f1f5f9;
            --grey-200: #e2e8f0;
            --grey-300: #cbd5e1;
            --grey-400: #94a3b8;
            --grey-500: #64748b;
            --grey-600: #475569;
            --grey-700: #334155;
            --grey-800: #1e293b;
            --grey-900: #0f172a;
            
            /* Typography */
            --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
            
            /* Spacing */
            --space-3xs: 0.125rem; /* 2px */
            --space-2xs: 0.25rem;  /* 4px */
            --space-xs: 0.5rem;    /* 8px */
            --space-sm: 0.75rem;   /* 12px */
            --space-md: 1rem;      /* 16px */
            --space-lg: 1.5rem;    /* 24px */
            --space-xl: 2rem;      /* 32px */
            --space-2xl: 3rem;     /* 48px */
            --space-3xl: 4rem;     /* 64px */
            
            /* Sizing */
            --size-3xs: 0.25rem;  /* 4px */
            --size-2xs: 0.5rem;   /* 8px */
            --size-xs: 0.75rem;   /* 12px */
            --size-sm: 1rem;      /* 16px */
            --size-md: 1.5rem;    /* 24px */
            --size-lg: 2rem;      /* 32px */
            --size-xl: 3rem;      /* 48px */
            --size-2xl: 4rem;     /* 64px */
            --size-3xl: 6rem;     /* 96px */
            
            /* Borders */
            --radius-sm: 0.125rem;  /* 2px */
            --radius-md: 0.375rem;  /* 6px */
            --radius-lg: 0.5rem;    /* 8px */
            --radius-xl: 0.75rem;   /* 12px */
            --radius-2xl: 1rem;     /* 16px */
            --radius-full: 9999px;
            
            /* Shadows */
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            
            /* Animation */
            --transition: all 0.2s ease-in-out;
            --transition-slow: all 0.3s ease-in-out;
            --transition-fast: all 0.1s ease-in-out;
            
            /* Base colors */
            --background: #ffffff;
            --card-bg: #ffffff;
            --text: #0f172a;
            --text-secondary: #475569;
            --border: #e2e8f0;
        }

        /* Reset & Base Styles */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        html {
            font-size: 16px;
            height: 100%;
        }
        
        body {
            font-family: var(--font-sans);
            background-color: var(--background);
            color: var(--text);
            line-height: 1.5;
            min-height: 100%;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }
        
        a:hover {
            color: var(--primary-dark);
        }
        
        button, .btn {
            cursor: pointer;
            font-family: var(--font-sans);
            font-size: 1rem;
            transition: var(--transition);
        }
        h1 {
          font-weight: 600;
            line-height: 1.2;
            margin-bottom: var(--space-md);
            color: var(--text);
            text-align: center;
        }
        
        h2, h3, h4, h5, h6 {
            font-weight: 600;
            line-height: 1.2;
            margin-bottom: var(--space-md);
            color: var(--text);
        }
        
        h1 { font-size: 2.5rem; }
        h2 { font-size: 2rem; }
        h3 { font-size: 1.5rem; }
        h4 { font-size: 1.25rem; }
        h5 { font-size: 1.125rem; }
        h6 { font-size: 1rem; }
        
        p {
            margin-bottom: var(--space-md);
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        /* Layout */
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }
        
        .content-container {
            flex: 1;
            padding: var(--space-xl) 0;
        }
        
        /* Cards & Containers */
        .card {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-md);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: var(--space-xl);
        }
        
        .card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        
        .card-header {
            padding: var(--space-lg);
            border-bottom: 1px solid var(--border);
            background-color: rgba(0, 0, 0, 0.02);
            display: flex;
            align-items: center;
            gap: var(--space-md);
        }
        
        .card-title {
            margin-bottom: 40px;
            font-weight: 600;
            font-size: 1.25rem;
            
            color: var(--primary-color);
        }
        
        .card-body {
            padding: var(--space-xl);
        }
        
        .grid {
            display: grid;
            gap: var(--space-lg);
        }
        
        .grid-2 {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .grid-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .grid-4 {
            grid-template-columns: repeat(4, 1fr);
        }
   /* Header Styles */
.site-header {
    background-color: white;
    color: white;
     border-bottom: 1px solid rgb(133, 127, 127);
    top: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.nav-menu {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav-link {
    color: black;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.3125rem 0.625rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: #a7a5a5;
    color: white;
    
}

.nav-link.active {
    background-color:#a7a5a5;
    color: white;
}
/* CHANGED: Enhanced mobile responsiveness */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 12px;
                padding: 12px 16px;
                align-items: stretch;
            }
            
            .logo {
                justify-content: center;
                margin-bottom: 8px;
            }
            
            .nav-menu {
                width: 100%;
                justify-content: center;
                gap: 6px;
                max-width: 100%;
                overflow-x: auto; /* CHANGED: Allow horizontal scroll if needed */
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .nav-menu::-webkit-scrollbar {
                display: none;
            }
            
            .nav-link {
                font-size: 0.95rem; /* CHANGED: Even smaller on mobile */
                padding: 8px 12px;
                flex-shrink: 0; /* CHANGED: Prevent shrinking */
                min-width: fit-content;
            }
        }

        /* CHANGED: Extra small screens */
        @media (max-width: 480px) {
            .header-container {
                padding: 10px 12px;
            }

            .nav-menu {
                gap: 4px;
            }
            
            .nav-link {
                font-size: 0.85rem;
                padding: 6px 8px;
            }
        }

        
        /* Footer Styles */
        .footer {
            background-color: var(--grey-900);
            color: var(--grey-300);
            padding-top: var(--space-2xl);
            margin-top: auto;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--space-xl) var(--space-2xl);
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--space-2xl);
        }
        
        .footer-section {
            display: flex;
            flex-direction: column;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            margin-bottom: var(--space-lg);
        }
        
        .footer-logo-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .footer-logo-text {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
        }
        
        .footer-tagline {
            color: var(--grey-400);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: var(--space-lg);
        }
        
        .footer-heading {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: var(--space-lg);
            color: white;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .footer-links li {
            margin-bottom: var(--space-md);
        }
        
        .footer-links a {
            color: var(--grey-400);
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: var(--space-sm);
        }
        
        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }
        
        .social-links {
            display: flex;
            gap: var(--space-md);
            margin-top: var(--space-lg);
            flex-wrap: wrap;
        }
        
        .social-link {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            color: var(--grey-300);
        }
        
        .social-link:hover {
            background-color: var(--primary-color);
            transform: translateY(-3px);
            color: white;
        }
        
        .footer-bottom {
            background-color: rgba(0, 0, 0, 0.3);
            padding: var(--space-lg);
            text-align: center;
            color: var(--grey-500);
            font-size: 0.9rem;
        }
        
        .footer-bottom p {
            margin-bottom: var(--space-xs);
            color: white;
        }
        
        .footer-bottom p:last-child {
            margin-bottom: 0;
        }
        
        /* Buttons & Form Elements */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-xs);
            padding: var(--space-sm) var(--space-lg);
            border-radius: var(--radius-md);
            font-weight: 500;
            border: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background-color: var(--secondary-color);
            color: white;
        }
        
        .btn-secondary:hover {
            background-color: #3db8e0;
            transform: translateY(-2px);
        }
        
        .btn-success {
            background-color: var(--success-color);
            color: white;
        }
        
        .btn-success:hover {
            background-color: #3ccc70;
            transform: translateY(-2px);
        }
        
        .btn-warning {
            background-color: var(--warning-color);
            color: white;
        }
        
        .btn-warning:hover {
            background-color: #f0b213;
            transform: translateY(-2px);
        }
        
        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }
        
        .btn-danger:hover {
            background-color: #dc3434;
            transform: translateY(-2px);
        }
        
        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--grey-300);
            color: var(--text);
        }
        
        .btn-outline:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-2px);
        }
        
        .btn-sm {
            padding: var(--space-xs) var(--space-md);
            font-size: 0.8rem;
        }
        
        .btn-lg {
            padding: var(--space-md) var(--space-xl);
            font-size: 1rem;
        }
        
        .btn-icon {
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 50%;
        }
        
        .btn:disabled, .btn.disabled {
            opacity: 0.6;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        /* Form styles */
        .input-group {
            display: flex;
            flex-direction: column;
            gap: var(--space-sm);
            margin-bottom: var(--space-lg);
        }
        
        .input-label {
            font-weight: 500;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        textarea, input[type="text"], input[type="number"] {
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: var(--space-md);
            font-family: var(--font-sans);
            font-size: 1rem;
            transition: var(--transition);
            background-color: var(--card-bg);
            color: var(--text);
            width: 100%;
        }
        
        textarea {
            min-height: 150px;
            resize: vertical;
        }
        
        textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
        }
        
        .slider-container {
            display: flex;
            align-items: center;
            gap: var(--space-md);
            margin-bottom: var(--space-lg);
        }
        
        .slider-label {
            font-weight: 500;
            min-width: 60px;
        }
        
        .slider {
            flex: 1;
            height: 6px;
            border-radius: var(--radius-full);
            background: var(--grey-200);
            outline: none;
            -webkit-appearance: none;
        }
        
        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .slider::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            transition: var(--transition);
        }
        
        .slider-value {
            font-weight: 500;
            min-width: 70px;
            text-align: right;
        }
        
        /* Action Groups */
        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-sm);
            margin-top: var(--space-md);
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin-bottom: var(--space-lg);
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        
        .tabs::-webkit-scrollbar {
            display: none;
        }
        
        .tab {
            padding: var(--space-md) var(--space-lg);
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
            border-bottom: 2px solid transparent;
        }
        
        .tab:hover {
            color: var(--primary-color);
        }
        
        .tab.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }
        
        /* Morse Visualization */
        .visual-morse {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-xs);
            margin: var(--space-lg) 0;
            min-height: 40px;
            background-color: var(--grey-100);
            border-radius: var(--radius-md);
            padding: var(--space-md);
        }
        
        .morse-symbol {
            display: inline-flex;
            align-items: center;
            margin-right: var(--space-xs);
            transition: var(--transition);
        }
        
        .morse-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary-color);
        }
        
        .morse-dash {
            width: 36px;
            height: 12px;
            border-radius: var(--radius-md);
            background-color: var(--primary-color);
        }
        
        .morse-space {
            width: 12px;
        }
        
        /* Morse Tools */
        .morse-tools {
            margin-top: var(--space-md);
        }
        
        .morse-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-xs);
        }
        
        /* Reference Grid */
        .reference-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: var(--space-md);
        }
        
        .reference-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--space-md);
            border-radius: var(--radius-md);
            background-color: var(--grey-100);
            transition: var(--transition);
            border: 1px solid var(--border);
        }
        
        .reference-item:hover {
            background-color: var(--grey-200);
            transform: translateY(-2px);
        }
        
        /* History Section */
        .history-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }
        
        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--space-md);
            border-radius: var(--radius-md);
            background-color: var(--grey-100);
            transition: var(--transition);
            border: 1px solid var(--border);
        }
        
        .history-item:hover {
            background-color: var(--grey-200);
            transform: translateY(-2px);
        }
        
        .history-text {
            flex: 1;
        }
        
        .history-actions {
            display: flex;
            gap: var(--space-xs);
        }
        
        /* Features Section */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: var(--space-xl);
        }
        
        .feature-card {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: var(--space-xl);
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: var(--space-md);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }
        
        .feature-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-md);
            background-color: rgba(58, 134, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            margin-bottom: var(--space-sm);
        }
        
        .feature-title {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--text);
            margin-bottom: var(--space-xs);
        }
        
        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: var(--space-xl);
            right: var(--space-xl);
            background-color: var(--dark-color);
            color: white;
            padding: var(--space-md) var(--space-lg);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            transform: translateY(100px);
            opacity: 0;
            transition: var(--transition);
            z-index: 1000;
            max-width: 300px;
        }
        
        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }
        
        /* Animations */
        .flash-animation {
            animation: flash 0.5s;
        }
        
        @keyframes flash {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Dark Mode */
        .dark-mode {
            --background: #1f2937;
            --card-bg: #111827;
            --text: #f3f4f6;
            --text-secondary: #d1d5db;
            --border: #374151;
            --grey-50: #111827;
            --grey-100: #1f2937;
            --grey-200: #374151;
            --grey-300: #4b5563;
            --grey-400: #6b7280;
            --grey-700: #d1d5db;
            --grey-800: #e5e7eb;
            --grey-900: #f9fafb;
        }
        
        .dark-mode .card {
            border-color: var(--grey-700);
        }
        
        .dark-mode textarea,
        .dark-mode input[type="text"],
        .dark-mode input[type="number"] {
            background-color: var(--grey-800);
            color: var(--text);
            border-color: var(--grey-700);
        }
        
        .dark-mode .card-header {
            background-color: rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode .tab.active {
            background-color: rgba(255, 255, 255, 0.05);
        }
        
        .dark-mode .visual-morse {
            background-color: var(--grey-800);
        }
        
        .dark-mode .reference-item,
        .dark-mode .history-item {
            background-color: var(--grey-800);
            border-color: var(--grey-700);
        }
        
        /* Responsive Media Queries */
        @media (max-width: 1200px) {
            .container {
                padding: 0 var(--space-lg);
            }
            
            .card-body {
                padding: var(--space-lg);
            }
            
            .features-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
        }
        
        @media (max-width: 992px) {
            .grid-4 {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .header-container {
                padding: var(--space-md) var(--space-lg);
            }
        }
        
        @media (max-width: 768px) {
            .grid-2, .grid-3, .grid-4 {
                grid-template-columns: 1fr;
            }
            
            .header-container {
                flex-direction: column;
                padding: var(--space-md);
            }
            
            .logo {
                margin-bottom: var(--space-sm);
            }
            
            .main-nav {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: var(--space-md);
                overflow-x: auto;
                padding-bottom: var(--space-sm);
                scrollbar-width: none;
                -ms-overflow-style: none;
            }
            
            .main-nav::-webkit-scrollbar {
                display: none;
            }
            
            .header-actions {
                width: 100%;
                justify-content: center;
            }
            
            .card-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
                gap: var(--space-xl);
                padding: 0 var(--space-lg) var(--space-xl);
            }
            
            .reference-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .history-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .history-actions {
                margin-top: var(--space-md);
                align-self: flex-end;
            }
        }
        
        @media (max-width: 576px) {
            .container {
                padding: 0 var(--space-md);
            }
            
            .card-body {
                padding: var(--space-md);
            }
            
            .toast {
                left: var(--space-md);
                right: var(--space-md);
                max-width: none;
            }
            
            .reference-grid {
                grid-template-columns: 1fr;
            }
            
            .actions {
                flex-direction: column;
                width: 100%;
            }
            
            .actions .btn {
                width: 100%;
            }
            
            .slider-container {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .slider-value {
                text-align: left;
            }
        }
        
        /* Print Styles */
        @media print {
            .header, .footer, .actions, .morse-tools {
                display: none;
            }
            
            .card {
                break-inside: avoid;
                box-shadow: none;
                border: 1px solid #ddd;
            }
            
            body {
                background-color: white;
                color: black;
            }
        }
     /* Info Section Styles */
.info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.info-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.info-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.info-section h4 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-section ul {
    margin: 0.5rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.info-section li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: #495057;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-section li:last-child {
    border-bottom: none;
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.info-section li:hover {
    background: rgba(0, 123, 255, 0.05);
    padding-left: 2.5rem;
    border-radius: 4px;
}

.info-section strong {
    color: #2c3e50;
    font-weight: 600;
}

.info-section em {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    color: #495057;
    font-style: normal;
    border: 1px dashed #007bff;
}

/* Dark mode styles */
[data-theme="dark"] .info-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    border-left-color: #3498db;
}

[data-theme="dark"] .info-section h3 {
    color: #ecf0f1;
}

[data-theme="dark"] .info-section h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

[data-theme="dark"] .info-section h4 {
    color: #bdc3c7;
}

[data-theme="dark"] .info-section p {
    color: #95a5a6;
}

[data-theme="dark"] .info-section li {
    color: #bdc3c7;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-section li:hover {
    background: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .info-section strong {
    color: #ecf0f1;
}

[data-theme="dark"] .info-section em {
    background: rgba(52, 152, 219, 0.1);
    color: #bdc3c7;
    border-color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .info-section h3 {
        font-size: 1.5rem;
    }
    
    .info-section h4 {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .info-section li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .info-section li::before {
        width: 1rem;
        height: 1rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .info-section h3 {
        font-size: 1.3rem;
    }
    
    .info-section h4 {
        font-size: 1rem;
    }
}
.article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #ffffff;
    border-radius: 10px;
   }
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}
.col-md-4, .col-md-8, .col-lg-4 {
    padding: 0.75rem;
}
.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
/* Typography */
h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}
h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333333;
}
u {
    text-decoration: underline;
    text-decoration-color: #667eea;
    text-underline-offset: 2px;
}
b {
    font-weight: 600;
    color: #000000;
}
/* Featured image */
.featured-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
/* Step cards */
.step-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}
.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.step-content {
    flex: 1;
}
.step-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
/* Tablet styles */
@media (max-width: 992px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-4:last-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 0.75rem;
    }
}
/* Mobile styles */
@media (max-width: 768px) {
    .article {
        padding: 1.5rem 1rem;
        margin: 1rem;
        border-radius: 8px;
    }
    
    .col-md-4, .col-md-8, .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-lg-4:last-child {
        margin-top: 0;
    }
    
    h2 {
        font-size: 1.75rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .featured-image {
        height: 300px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .step-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}
 .faq-container {
            background: white;
            border-radius: 15px;
            padding: 40px;
          
        }
        
        .faq-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 3px solid #667eea;
        }
        
        .faq-header h1 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 2.5rem;
        }
        
        .faq-header p {
            color: #7f8c8d;
            font-size: 1.1rem;
        }
        
        .faq-item {
            margin-bottom: 30px;
            padding: 25px;
            background: #f8f9ff;
            border-radius: 12px;
            border-left: 5px solid #667eea;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .faq-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }
        
        .faq-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
        }
        
        .faq-item:hover::before {
            transform: scaleX(1);
        }
        
       .faq-item  h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.3rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
      .faq-item   h3::before {
            content: '?';
            background: #667eea;
            color: white;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: bold;
        }
        
     .faq-item    p {
            color: #555;
            margin: 0;
            font-size: 1rem;
            line-height: 1.7;
        }
        
        .morse-example {
            background: #e8f2ff;
            padding: 12px 16px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            color: #2980b9;
            margin: 10px 0;
            border: 1px solid #3498db;
        }
        
       
     
       
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .faq-container {
                padding: 20px;
            }
            
            .faq-header h1 {
                font-size: 2rem;
            }
            
            .faq-item {
                padding: 20px;
            }
        }