@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

        :root {
            --bg-color: #FFFFFF;
            --royal-text: #333333;
            --header-bg: #FFFFFF;
            --footer-bg: #f5f5f5;
            --accent-color: #a70000;
            --card-bg: #FFFFFF;
            --card-hover-bg: #3498db;
            --card-hover-text: #FFFFFF;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --accent-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
			--radius: 20px;
            --transition: all 0.3s ease;
			--hero-bg: linear-gradient(-11deg, rgba(58, 61, 91, 0.1), rgb(255 255 255 / 72%));
            --image-overlay: linear-gradient(to bottom, rgba(245, 245, 247, 0.1), rgba(245, 245, 247, 0.7));
            --hero-icon-bg: rgba(255, 255, 255, 0.7);
            --font-heading: 'Oswald', sans-serif;
            --font-body: 'Montserrat', sans-serif;
            --sidebar-width: 332px;
            /* Additional colors for PDF tools */
            --primary-color: #e74c3c;
            --primary-dark: #c0392b;
            --border-color: #f0f0f0;
            --gray-text: #5d6d7e;
            --light-gray: #f8f9fa;
            --scrollbar-bg: rgba(0, 0, 0, 0.05);
            --scrollbar-thumb: #e74c3c;
            --menu-hover-bg: rgba(52, 152, 219, 0.1);
            --dropdown-bg: #FFFFFF;
            --dropdown-border: #f0f0f0;
            --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
            --icon-bg: #f0f7ff;
			--box-hover: rgba(231, 76, 60, 0.1);
        }

        [data-theme="dark"] {
            --bg-color: #8f8f9b;
            --royal-text: #EAEAEA;
            --header-bg: #2B2D42;
            --footer-bg: #38383e;
            --accent-color: #FFD700;
            --card-bg: #3A3D5B;
            --card-hover-bg: #FFD700;
            --card-hover-text: #1E1E2F;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            --accent-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
			--hero-bg: linear-gradient(-11deg, rgb(247 248 255 / 72%), rgb(0 0 0));
            --image-overlay: linear-gradient(to bottom, rgba(30, 30, 47, 0.1), rgba(30, 30, 47, 0.7));
            --hero-icon-bg: rgba(58, 61, 91, 0.7);
            /* Additional colors for PDF tools in dark mode */
            --primary-color: #e74c3c;
            --primary-dark: #c0392b;
            --border-color: #3a3e5c;
            --gray-text: #b0b0b0;
            --light-gray: #25273d;
            --scrollbar-bg: rgba(255, 255, 255, 0.05);
            --scrollbar-thumb: #e74c3c;
            --menu-hover-bg: rgba(231, 76, 60, 0.2);
            --dropdown-bg: #2d3047;
            --dropdown-border: #3a3e5c;
            --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
            --icon-bg: rgba(58, 62, 92, 0.5);
        }

        /* start nav introduction */
		.mobile-only {
			display: none;
		}
		/* end nav introduction */
		
		* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
		
		body {
            background-color: var(--bg-color);
            color: var(--royal-text);
            line-height: 1.6;
            font-family: var(--font-body);
            transition: var(--transition);
        }
		
		/* START FONT SETTINGS */

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
        }
		
		h1, h2, h3, h4 {
            color: var(--accent-color);
        }

        h1 {
            font-size: 2.8rem;
        }

        h2 {
            font-size: 2.4rem;
			margin-bottom: 1rem;
        }

        h3 {
            font-size: 2rem;
        }
		h4 {
			font-size: 1.6rem;
		}
		
		@media (max-width: 992px) {
			h1 {
				font-size: 2.2rem;
			}
			h2 {
				font-size: 1.8rem;
			}
			h3 {
				font-size: 1.5rem;
			}
			h4 {
				font-size: 1.25rem;
			}
		}
		
		@media (max-width: 768px) {
			h1 {
				font-size: 2.2rem;
			}
			h2 {
				font-size: 1.8rem;
			}
			h3 {
				font-size: 1.5rem;
			}
			h4 {
				font-size: 1.25rem;
			}		
		}
		
		@media (max-width: 600px) {
			h1 {
				font-size: 2rem;
			}
			h2 {
				font-size: 1.6rem;
			}
			h3 {
				font-size: 1.4rem;
			}
			h4 {
				font-size: 1.2rem;
			}		
		}
		
		@media (max-width: 480px) {
			h1 {
				font-size: 1.7rem;
			}
			h2 {
				font-size: 1.5rem;
			}
			h3 {
				font-size: 1.3rem;
			}
			h4 {
				font-size: 1rem;
			}
			.toggle-label {
				font-size: 1.2rem;
			}
			
		}
		
		@media (max-width: 400px) {
			h1 {
				font-size: 1.5rem;
			}
			h2 {
				font-size: 1.2rem;
			}
			h3 {
				font-size: 1rem;
			}
			h4 {
				font-size: 0.9rem;
			}
			.toggle-label {
				font-size: 1.2rem;
			}
			
		}
		/* END FONT SETTINGS */
		
		/* START DROPDOWN MENUS RESPONSIVE CSS CODES */
        /* Custom scrollbar for mobile */
        .mobile-scroll-container {
            max-height: 60vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-right: 5px;
        }

        /* Beautiful scrollbar styling */
        .mobile-scroll-container::-webkit-scrollbar {
            width: 6px;
        }

        .mobile-scroll-container::-webkit-scrollbar-track {
            background: var(--scrollbar-bg);
            border-radius: 10px;
        }

        .mobile-scroll-container::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        .mobile-scroll-container::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* For Firefox */
        .mobile-scroll-container {
            scrollbar-width: thin;
            scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
        }
		/* END DROPDOWN MENUS RESPONSIVE CSS CODES */
		

        /* START HEADER CSS CODES */
        .site-header {
            background-color: var(--header-bg);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 0 20px;
            transition: var(--transition);
			font-family: var(--font-heading);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Logo styling */
        .logo {
			display: flex;
			align-items: center;
			gap: 0.5rem;
			text-decoration: none;
		}

		.logo-icon {
			width: 50px;
			height: 50px;
		}

        .logo-text {
            font-size: 22px;
        }

        .logo-subtext {
            color: var(--primary-color);
            font-weight: 600;
        }

        /* Main navigation */
        .main-nav {
            display: flex;
            align-items: center;
        }

        /* Navigation list */
        .nav-list {
            display: flex;
            list-style: none;
        }

        .nav-item {
            position: relative;
            margin-right: 8px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 10px;
            text-decoration: none;
            color: var(--accent-color);
            font-weight: 500;
            border-radius: 6px;
            transition: var(--transition);
            white-space: nowrap;
            font-family: var(--font-heading);
        }

        .nav-link:hover {
            background-color: var(--accent-color);
            color: var(--card-hover-text);
        }

        .nav-link.active {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--primary-color);
            font-weight: 600;
        }

        [data-theme="dark"] .nav-link.active {
            background-color: rgba(231, 76, 60, 0.2);
        }

        /* Dropdown menu styling */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: -280px;
            background: var(--dropdown-bg);
            min-width: 800px;
            box-shadow: var(--dropdown-shadow);
            border-radius: 10px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(15px);
            transition: var(--transition);
            z-index: 1000;
            padding: 25px;
            max-width: 95vw;
            overflow: hidden;
            border: 1px solid var(--dropdown-border);
			font-family: var(--font-heading);
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(5px);
        }

        /* Multi-column layout for dropdown */
        .dropdown-columns {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }

        .dropdown-section {
            margin-bottom: 0;
			font-family: var(--font-heading);
        }

        .dropdown-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--accent-color);
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            font-family: var(--font-heading);
        }

        .dropdown-icon {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            background-color: var(--primary-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }

        .dropdown-list {
            list-style: none;
        }

        .dropdown-item {
            margin-bottom: 8px;
        }

        .dropdown-link {
            display: flex;
            align-items: center;
            padding: 8px 0;
            text-decoration: none;
            color: var(--gray-text);
            font-size: 14px;
            transition: var(--transition);
            border-radius: 4px;
            font-family: var(--font-heading);
        }

        .dropdown-link:hover {
            color: var(--primary-color);
        }

        .item-icon {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            background-color: var(--header-bg);
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray-text);
            font-size: 16px;
        }
		
		.dropdown-img {
			display: flex;
			flex-direction: column;
			padding: 10px;
			border: 2px dotted var(--accent-color);
			border-radius: 10px;
		}
		
		.dropdown-img:hover {
			box-shadow: var(--shadow);
		}
		
		.dropdown-pic {
			width: 130px;
			height: 130px;
		}

        /* Header actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .theme-toggle {
            display: flex;
            align-items: center;
        }

        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ddd;
            transition: .4s;
            border-radius: 24px;
			box-shadow: inset 1px 0px 5px 3px;
        }

        [data-theme="dark"] .toggle-slider {
            background-color: #555;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: var(--accent-color);
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 24px;
            color: var(--h1-color);
            cursor: pointer;
            padding: 5px;
            transition: var(--transition);
        }
		
		/* PNG icon styling for when you add them */
        .png-icon {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            object-fit: contain;
        }

        .png-icon-small {
            width: 16px;
            height: 16px;
            margin-right: 10px;
        }
		/* END HEADER CSS CODES */
		
		/* START MAIN PAGE CSS */
		.main-content {
			max-width: 1200px;
			margin: 2rem auto;
			padding: 1rem;
		}
		/* END MAIN PAGE CSS */

        /* Hero section start style */
        .hero {
			background: var(--hero-bg);
			border-radius: 12px;
			padding: 2rem 2rem;
			margin-bottom: 3rem;
			text-align: center;
			box-shadow: var(--shadow);
		}

		.hero h2 {
			font-size: 2.5rem;
			margin-bottom: 1rem;
			color: var(--accent-color);
		}

		.hero p {
			color: var(--accent-color);
			font-size: 1.2rem;
			max-width: 700px;
			margin: 0 auto;
		}
		
		.hero p a {
			text-decoration: none;   /* make underline */
		}
		
		.hero-icons {
			display: grid;
			grid-template-columns: repeat(6, 1fr);
			gap: 1.5rem;
			margin: 2rem auto 0;
			max-width: 900px;
			font-family: var(--font-heading);
		}

		.hero-icon {
			display: flex;
			flex-direction: column;
			align-items: center;
			border: 2px solid var(--accent-color);
			border-radius: 15px;
			padding: 5px;
			cursor: pointer;
			transition: var(--transition);
		}

		.hero-icon:hover {
			transform: translateY(-5px);
		}

		.icon-circle {
			width: 60px;
			height: 60px;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 0.5rem;
			transition: var(--transition);
			backdrop-filter: blur(5px);
		}

		.icon-img {
			width: 60px;
			height: 60px;
			object-fit: contain;
			transition: var(--transition);
			border-radius: 5%;
		}

		.hero-icon:hover .icon-img {
			transform: scale(1.1);
		}

		.hero-icon p {
			font-size: 0.9rem;
			font-weight: 500;
			text-align: center;
			color: var(--royal-text);
			margin-top: 0.3rem;
		}

		.hero-icon:hover p {
			color: var(--accent-color);
		}
		
		/* Hero section end style */

        .highlight {
            color: var(--primary-color);
            font-weight: 600;
        }
		
		/* styling for calculator section */
		
		.calculator-section {
			padding: 20px;
			background: var(--footer-bg);
			border-radius: 5px;
		}
		
		/* START SEARCH SECTION CSS */
		.search-container {
			max-width: 600px;
			margin: 2rem auto;
			padding: .7rem;
		}

		.search-box {
			display: flex;
			align-items: center;
			background-color: var(--card-bg);
			border-radius: 50px;
			padding: 0.8rem 1.5rem;
			box-shadow: var(--shadow);
			transition: var(--transition);
			border: 2px solid transparent;
		}

		.search-box:focus-within {
			border-color: var(--accent-color);
			box-shadow: var(--accent-shadow);
		}

		.search-box input {
			flex: 1;
			border: none;
			outline: none;
			background: transparent;
			font-size: 1rem;
			color: var(--royal-text);
			padding: 0.5rem;
			font-family: var(--font-body);
		}

		.search-box input::placeholder {
			color: rgba(0, 0, 0, 0.5);
		}

		[data-theme="dark"] .search-box input::placeholder {
			color: rgba(255, 255, 255, 0.5);
		}

		.search-icon {
			color: var(--accent-color);
			font-size: 1.2rem;
			margin-right: 0.5rem;
		}
		/* END SEARCH SECTION CSS */
		
		/* START ACCORDION CSS FOR FAQ */
		.accordion {
			margin: 20px 0;
		}

		.accordion-item {
			margin-bottom: 10px;
			border-radius: 8px;
			overflow: hidden;
		}

		.accordion-header {
			background: transparent;
			color: var(--accent-color);
			padding: 15px 20px;
			width: 100%;
			text-align: left;
			cursor: pointer;
			border: none;
			font-size: 16px;
			font-weight: 600;
			transition: background 0.3s ease;
			border-radius: 8px;
			border: 2px solid var(--accent-color);
		}

		.accordion-header:hover {
			background: var(--accent-color);
			color: white;
		}

		.accordion-header[aria-expanded="true"] {
			background: var(--accent-color);
			color: white;
		}

		.accordion-content {
			max-height: 0;
			overflow: hidden;
			transition: max-height 0.4s ease-out;
			background: var(--footer-bg);
			border-radius: 0 0 8px 8px;
			border: 1px dotted var(--accent-color);
			line-height: 1.6;
		}

		.accordion-content.active {
			max-height: 500px;
			padding: 15px 20px;
			transition: max-height 0.4s ease-in;
		}

		/* Features List Styles */
		.features-list {
			list-style: none;
			padding: 0;
			display: grid;
			grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
			gap: 12px;
			margin: 20px 0;
		}

		.features-list li {
			background: var(--footer-bg);
			padding: 12px 16px;
			border-radius: 8px;
			border-left: 4px solid var(--accent-color);
			font-size: 14px;
		}

		/* END ACCORDION CSS FOR FAQ */
		
		/* START TABLE STYLE CSS */
		.comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }
        
        .comparison-table th {
            background: var(--accent-color);
            color: white;
            padding: 15px;
            text-align: left;
        }
        
        .comparison-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #ddd;
        }
        
        .key-button {
            display: inline-block;
            padding: 8px 15px;
            background: #34495e;
            color: white;
            border-radius: 5px;
            font-weight: bold;
            min-width: 50px;
            text-align: center;
        }
        
        .key-func {
            background: #2e7d32;
        }
        
        .key-op {
            background: #e65100;
        }
        
        .key-num {
            background: #0d47a1;
        }
        
        .key-mem {
            background: #bb1818;
        }
		
		/* END TABLE STYLE CSS */
		
		/* START Tool categories */
        .category-grid, .calculator-grid {
			display: grid;
			grid-template-columns: repeat(4, 1fr);
			gap: 2rem;
			margin-bottom: 3rem;
		}

		.category-card, .calculator-card {
			background-color: var(--card-bg);
			border-radius: 12px;
			padding: 0.5rem;
			transition: var(--transition);
			cursor: pointer;
			box-shadow: var(--shadow);
			display: flex;
			gap: 1rem;
		}

		.category-card:hover, .calculator-card:hover {
			background-color: var(--accent-color);
			color: var(--card-hover-text);
			transform: translateY(-5px);
			box-shadow: var(--accent-shadow);
		}

		.category-card:hover h3, .calculator-card:hover h3 {
			color: var(--card-hover-text);
		}

		.category-card:hover h4, .calculator-card:hover h4 {
			color: var(--card-hover-text);
		}
		
		/* Category Card with Image */
		.category-card {
			position: relative;
			overflow: hidden;
			padding: 0;
			height: 300px;
		}

		.card-image-container {
			position: relative;
			width: 100%;
			height: 100%;
		}

		.card-image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 0.5s ease;
		}

		.image-overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background: var(--image-overlay);
		}

		.card-content {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			padding: 1.2rem;
			z-index: 2;
		}

		.category-card:hover .card-image {
			transform: scale(1.05);
		}

		/* Adjust icon position */
		.category-card .card-icon {
			font-size: 2rem;
			margin-bottom: 0.5rem;
			color: var(--accent-color);
		}

		/* Adjust text contrast for better readability over images */
		.category-card h3 {
			color: white;
			text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
		}

		.category-card p {
			color: var(--royal-text);
			text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
		}

		/* Hover effects with images */
		.category-card:hover h3,
		.category-card:hover p {
			color: var(--card-hover-text);
			text-shadow: none;
		}

		.category-card:hover .card-icon {
			color: var(--card-hover-text);
		}

		.category-card:hover .image-overlay {
			background: rgba(52, 152, 219, 0.8);
		}

		[data-theme="dark"] .category-card:hover .image-overlay {
			background: rgba(255, 215, 0, 0.8);
		}

		.card-icon {
			font-size: 2.5rem;
			margin-bottom: 1rem;
		}

		.card-icon img {
			width: 40px;
			height: 40px;
			object-fit: contain;
			margin-bottom: 1rem;
			transition: var(--transition);
		}

		.calculator-card:hover .card-icon img {
			transform: scale(1.1);
			filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
		}

		.category-card h3, .calculator-card h3 {
			font-size: 1.5rem;
			color: var(--accent-color);
		}

		.category-card h4, .calculator-card h4 {
			font-size: 1.2rem;
			color: var(--accent-color);
		}

		.card-footer {
			margin-top: auto;
			font-size: 1.5rem;
			text-align: right;
		}

		/* END TOOL CATEGORY SECTION */
		
		/* START MAIN CONTENT LAYOUT */
		.calculator-content {
            flex: 1;
            background-color: var(--footer-bg);
            border-radius: 12px;
            box-shadow: var(--shadow);
        }
		
		.calculator-body {
			display: flex;
			padding: 25px;
			gap: 20px;
		}
		
		/* END MAIN CONTENT LAYOUT */
		
		/* START ARTICLE CSS */
		#toolsArticle {
                border-radius: 8px;
				padding: 2rem;
				background: var(--footer-bg);
            }
            #toolsArticle p, #toolsArticle ul {
                margin-bottom: 1rem;
                font-size: 0.95rem;
                opacity: 0.9;
            }
            #toolsArticle li {
                margin-left: 1.5rem;
                margin-bottom: 0.5rem;
            }
             #toolsArticle strong { color: var(--accent-color); opacity: 1;}
			 
			@media (max-width: 480px) {
				#toolsArticle {
					padding: 0.5rem;
				}
				
				.comparison-table th {
					padding: 2px;
				}
				
				.comparison-table td {
					padding: 2px;
				}
			} 
			
			@media (max-width: 320px) {
				#toolsArticle {
					padding: 0.1rem;
				}
				
				#toolsArticle p, #toolsArticle ul {
					font-size: 0.75rem;
				}
				
				.comparison-table th {
					padding: 0px;
					font-size: .8rem;
				}
				
				.comparison-table td {
					padding: 0px;
					font-size: .8rem;
				}
			}
		/* END ARTICLE CSS*/
		
		/* START FOOTER CSS */
		footer {
            background-color: var(--footer-bg);
            color: var(--royal-text);
			font-family: var(--font-heading);
            padding: 3rem 0 0;
            margin-top: 3rem;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        .footer-column {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .footer-logo-icon {
            width: 40px;
            height: 40px;
        }

        .footer-logo-text {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-color);
        }

        .footer-description {
            font-size: 0.9rem;
            line-height: 1.6;
            opacity: 0.8;
        }

        .footer-heading {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 1rem;
            color: var(--accent-color);
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background-color: var(--accent-color);
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-link {
            color: var(--footer-text);
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .footer-link:hover {
            color: var(--accent-color);
        }

        .footer-link-icon {
            width: 25px;
            height: 25px;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 215, 0, 0.1);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
        }

        .social-icon {
            width: 18px;
            height: 18px;
        }

        .app-download {
            display: inline-block;
        }

        .app-store-icon {
            width: 200px;
            height: auto;
            border-radius: 5px;
            transition: transform 0.3s ease;
        }

        .app-store-icon:hover {
            transform: scale(1.05);
        }

        .copyright {
            background-color: var(--header-bg);
            padding: 1rem 0;
            margin-top: 1rem;
            text-align: center;
            font-size: 0.8rem;
            opacity: 0.7;
        }
		
		/* Mobile responsiveness */
		@media (max-width: 600px) {
			.copyright {
				padding: 1rem 0.5rem;
			}
		}
		
		/* END FOOTER CSS */

        /* Mobile responsiveness */
        @media (max-width: 992px) {
            .mobile-menu-toggle {
                display: block;
            }
            
            .main-nav {
                position: fixed;
                top: 50px;
                left: 0;
                width: 75%;
                background: var(--header-bg);
                box-shadow: var(--shadow);
                padding: 20px;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: var(--transition);
                z-index: 999;
                border-top: 1px solid var(--border-color);
                height: calc(100vh - 70px);
                display: flex;
                flex-direction: column;
            }
            
            .main-nav.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            
            .nav-list {
                flex-direction: column;
                width: 100%;
                flex: 1;
                overflow-y: auto;
                padding-right: 5px;
            }
            
            .nav-item {
                width: 100%;
                margin-right: 0;
                margin-bottom: 5px;
            }
            
            .nav-link {
                padding: 15px;
                border-radius: 8px;
                border-bottom: 1px solid var(--border-color);
            }
            
            .dropdown-menu {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                padding: 0;
                min-width: auto;
                max-width: 100%;
                display: none;
                background: var(--light-gray);
                border-radius: 8px;
                margin-top: 5px;
                border: 1px solid var(--border-color);
                max-height: 400px;
                overflow-y: auto;
            }
            
            .dropdown-menu.active {
                display: block;
                padding: 15px;
            }
            
            .dropdown-columns {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            /* Make mobile dropdown scrollable */
            .dropdown-menu.active .dropdown-columns {
                max-height: 350px;
                overflow-y: auto;
                padding-right: 10px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar {
                width: 5px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar-track {
                background: var(--scrollbar-bg);
                border-radius: 10px;
            }

            .dropdown-menu.active .dropdown-columns::-webkit-scrollbar-thumb {
                background: var(--scrollbar-thumb);
                border-radius: 10px;
            }
            
            .hero-title {
                font-size: 36px;
            }
            
            .hero-subtitle {
                font-size: 18px;
            }
            
            .header-actions {
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            .mobile-only {
				display: block;
			}
			.hero-section {
                padding: 60px 20px;
            }
            
            .hero-title {
                font-size: 30px;
            }
            
            .hero-subtitle {
                font-size: 16px;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
            }
        }
		
		/* Page Load Animation - Theme Compatible */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo-container {
    text-align: center;
    padding: 30px;
    max-width: 90%;
}

.loader-logo-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.loader-logo {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #daa520 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.loader-logo:before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: repeating-linear-gradient( 
        45deg, 
        var(--accent-color),
        rgba(255, 215, 0, 0.3) 10px,
        transparent 10px,
        transparent 20px 
    );
    animation: rotate 20s linear infinite;
}

.loader-logo-inner {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: var(--card-bg);
}

.loader-calculator-icon {
    width: 70%;
    height: 70%;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1%;
    justify-content: center;
    align-items: center;
}

.loader-calculator-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: brightness(0.8);
}

.loader-logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.loader-royal-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 
        2px 2px 0 var(--royal-text),
        -1px -1px 0 var(--royal-text), 
        1px -1px 0 var(--royal-text), 
        -1px 1px 0 var(--royal-text);
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

[data-theme="dark"] .loader-logo {
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .loader-royal-text {
    text-shadow: 
        2px 2px 0 #000000,
        -1px -1px 0 #000000, 
        1px -1px 0 #000000, 
        -1px 1px 0 #000000;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 
            2px 2px 0 var(--royal-text),
            -1px -1px 0 var(--royal-text), 
            1px -1px 0 var(--royal-text), 
            -1px 1px 0 var(--royal-text);
    }
    to {
        text-shadow: 
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            2px 2px 0 var(--royal-text);
    }
}

@media (max-width: 600px) {
    .loader-logo {
        width: 150px;
        height: 150px;
    }
    
    .loader-royal-text {
        font-size: 26px;
    }
}
/* UNSTYLING HEADINGS */
.main-header,
.main-footer,
.calculator-sidebar {
    transition: font-family 0.3s ease;
}

h1 a {
    color: inherit;          /* Inherit the color from h1 */
    text-decoration: none;   /* Remove underline */
    font-weight: inherit;    /* Inherit font weight */
}

h3 a {
    color: inherit;          /* Inherit the color from h1 */
    text-decoration: none;   /* Remove underline */
    font-weight: inherit;    /* Inherit font weight */
}

p a {
    color: var(--accent-color);          /* Inherit the color from accent color */
    text-decoration: underline;   /* make underline */
    font-weight: bold;    /* Inherit font weight */
}

h1 a:hover, h1 a:focus, h1 a:active {
    color: inherit;
    text-decoration: none;
}

p a:hover, p a:focus, p a:active {
    color: inherit;
    text-decoration: overline;
}

/* Responsive Design */
@media (max-width: 1150px) {
				
				.calculator-body {
					padding: 8px;
				}
			}

@media (max-width: 1024px) {
    .category-grid, .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-copyright {
        grid-column: span 2;
        text-align: center;
    }
    
    .category-card {
        height: 250px;
    }
    
    .hero-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
	
	.main-content {
        flex-direction: column;
    }
            
    .calculator-content {
        order: 1;
    }
			
	.calculator-body {
		padding: 10px 80px;
		gap: 30px;
	}
}

@media (max-width: 992px) {
	.footer-container {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
	.calculator-body {
		padding: 10px 50px;
		gap: 20px;
	}		
}

@media (max-width: 768px) {
    .main-content{
		margin: 0rem auto;
	}
	
	.calculator-body {
		padding: 10px 30px;
		gap: 15px;
	}
	
	.tool-container {
		margin: 0rem auto;
	}
	
	.converter-box {
		padding: 10px;
	}
	
	.header-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav ul {
        gap: 1rem;
		display: block;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .category-card {
        height: 220px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .category-card .card-icon {
        font-size: 1.8rem;
    }
    
    .category-card h3 {
        font-size: 1.3rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    .hero-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-icon p {
        font-size: 0.8rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }		
}

@media (max-width: 600px) {
    .converter-box {
		padding: 10px;
	}
	
	.category-grid, .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-column {
                text-align: center;
            }
            
            .footer-heading::after {
                left: 50%;
                transform: translateX(-50%);
            }
    
    .hero-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-list li {
        flex-direction: column;
    }
    
    .calculator-list li::after {
        content: none;
    }
    
    .calculator-list a {
        margin-bottom: 0.3rem;
    }		
}

@media (max-width: 400px) {
    .calculator-body {
		padding: 10px;
		gap: 10px;
	}
	
	.icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .hero-icon p {
        font-size: 0.75rem;
    }
    
    .main-nav a {
        padding: 0.5rem;
    }
	
	.main-nav ul {
		gap: .5rem;
	}
	
	.dropdown-content {
		width: 180px;
	}
}

/* additional for sitemap page */
	.sitemap-container {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
	
	.sitemap-column {
		display: flex;
		flex-direction: column;
		padding: 10px;
	}
	
	li a {
		color: var(--accent-color);          /* Inherit the color from accent color */
		text-decoration: underline;   /* make underline */
		font-weight: inherit;    /* Inherit font weight */
		font-family: var(--font-heading);
	}
	
	@media (max-width: 786px) {
		.sitemap-container {
			grid-template-columns: repeat(1, 1fr);
		}
	}
	
	.value-card {
		background: var(--card-bg); 
		padding: 1.5rem; 
		border-radius: 12px;
	}