/* ========================================================================== 0. Accessibility: Skip Link ========================================================================== */ .skip-link { position: absolute; left: -9999px; z-index: 999999; } .skip-link:focus { left: 6px; top: 7px; padding: 8px 16px; background: #000; color: #fff; text-decoration: none; border-radius: 3px; } .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important; } .screen-reader-text:focus { background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto !important; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; } /* ========================================================================== 1. Base Styles & Typography ========================================================================== */ * { box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #374151; background-color: #f9fafb; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: #2563eb; text-decoration: none; transition: color 0.3s ease; } a:hover { color: #1d4ed8; text-decoration: underline; } /* ========================================================================== 1. Layout & Container Styles ========================================================================== */ .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .container-fluid { width: 100%; padding: 0 20px; } .custom-width { margin: 0 auto; padding: 0 20px; } /* ========================================================================== 2. Header & Navigation ========================================================================== */ html { margin-top: 0 !important; } .site-header { /* Background color is controlled by Customizer - see dynamic-styles.php */ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 1000; } .site-logo { font-size: 24px; font-weight: 700; } .site-logo a { color: #4a9eff; text-decoration: none; transition: color 0.3s ease; } .site-logo a:hover { color: #60a5fa; text-decoration: none; } .site-logo img { object-fit: cover; border-radius: 4px; } .header-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; min-height: 70px; } /* Primary Navigation Menu ========================================================================== */ .primary-navigation { display: flex; align-items: center; } .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; align-items: center; } .menu > li { position: relative; } .menu li a { display: block; padding: 10px 20px; color: #ffffff; background: transparent; text-decoration: none; border-radius: 6px; transition: all 0.3s ease; font-weight: 500; font-size: 15px; } .menu li a:hover { background: rgba(74, 158, 255, 0.1); color: #4a9eff; text-decoration: none; transform: translateY(-1px); } /* Mega Menu (First-Level Dropdown) ========================================================================== */ .mega-menu { position: absolute; top: 100%; left: 0; width: 600px; background: #fff; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); display: none; z-index: 10; } .mega-menu-items { display: flex; flex-wrap: wrap; gap: 15px; list-style: none; padding: 0; margin: 0; width: 100%; } .mega-menu-items li { width: 100%; } /* Sub Menu (Second-Level Dropdown) ========================================================================== */ .sub-menu { position: absolute; top: 0; left: 100%; background: #fff; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); display: none; list-style: none; padding: 0; } .sub-menu li { position: relative; } .sub-menu li a { color: #222; padding: 10px 15px; display: block; white-space: nowrap; } .sub-menu li a:hover { background: #f4f4f4; } /* Show Dropdowns on Hover */ .menu > li:hover > .mega-menu, .mega-menu-items > li:hover > .sub-menu { display: block; width: 100%; } /* ========================================================================== 3. Footer Styles ========================================================================== */ .site-footer { /* Background and color are controlled by Customizer - see dynamic-styles.php */ padding: 50px 0 30px; margin-top: 60px; } .footer-widgets { margin: 0 auto; padding: 20px 0; } .footer-column { text-align: left; } .footer-widget { margin-bottom: 30px; } .footer-widget-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: #ffffff; } .footer-widget p, .footer-widget ul { color: #d1d5db; line-height: 1.8; } .footer-widget a { color: #4a9eff; transition: color 0.3s ease; } .footer-widget a:hover { color: #60a5fa; } .footer-bottom { margin-top: 40px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: #9ca3af; font-size: 14px; } /* ========================================================================== 4. Content Area Styles ========================================================================== */ .site-main { min-height: calc(100vh - 200px); padding: 40px 0; } .content-area { padding: 30px 0; } .page-title { font-size: 36px; margin-bottom: 30px; font-weight: 700; line-height: 1.2; color: #1f2937; } .entry-title { font-size: 28px; margin-bottom: 15px; font-weight: 700; line-height: 1.3; } .entry-title a { color: #1f2937; transition: color 0.3s ease; } .entry-title a:hover { color: #2563eb; } .entry-header { margin-bottom: 25px; } .entry-meta { color: #6b7280; font-size: 14px; margin-bottom: 20px; } .entry-meta span { margin-right: 15px; } article { background: #ffffff; padding: 30px; margin-bottom: 30px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); transition: box-shadow 0.3s ease; } article:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .entry-content, .entry-summary { margin-bottom: 25px; line-height: 1.8; color: #4b5563; } .entry-content p { margin-bottom: 20px; } .entry-title a { color: #2563eb; text-decoration: none; transition: color 0.3s ease; } .entry-title a:hover { color: #1d4ed8; text-decoration: none; } .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 30px; margin-bottom: 15px; } .read-more { display: inline-block; margin-top: 15px; /* Background and color are now controlled by Customizer - see dynamic-styles.php */ border-radius: 6px; font-weight: 500; transition: all 0.3s ease; } .read-more:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); /* Background and color are now controlled by Customizer - see dynamic-styles.php */ } .post-thumbnail { margin-bottom: 30px; border-radius: 8px; overflow: hidden; } .post-thumbnail img { width: 100%; height: auto; display: block; } .entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 14px; } .entry-footer span { margin-right: 15px; } .entry-footer a { color: #2563eb; } .page-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e5e7eb; } .page-links a { display: inline-block; padding: 8px 15px; margin: 0 5px; background: #f3f4f6; border-radius: 4px; transition: all 0.3s ease; } .page-links a:hover { background: #2563eb; color: #ffffff; text-decoration: none; } /* ========================================================================== 5. Utility Classes ========================================================================== */ .text-center { text-align: center; } .mb-0 { margin-bottom: 0; } .mt-0 { margin-top: 0; } /* ========================================================================== 6. Comments Styles ========================================================================== */ .comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid #e5e7eb; } .comments-title { font-size: 28px; font-weight: 700; margin-bottom: 30px; color: #1f2937; } .comment-list { list-style: none; padding: 0; margin: 0 0 30px; } .comment { background: #ffffff; padding: 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .comment-author { font-weight: 600; color: #1f2937; } .comment-meta { color: #6b7280; font-size: 14px; margin-bottom: 10px; } .comment-content { color: #4b5563; line-height: 1.7; } .comment-reply-link { display: inline-block; margin-top: 10px; padding: 6px 15px; background: #f3f4f6; color: #2563eb; border-radius: 4px; font-size: 14px; transition: all 0.3s ease; } .comment-reply-link:hover { background: #2563eb; color: #ffffff; text-decoration: none; } .comment-form { background: #ffffff; padding: 30px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .comment-reply-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; color: #1f2937; } /* ========================================================================== 7. Search & 404 Styles ========================================================================== */ .page-content { background: #ffffff; padding: 40px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .error-404 { text-align: center; padding: 60px 20px; } .error-404 .page-title { font-size: 72px; color: #2563eb; margin-bottom: 20px; } .error-404 .page-content { max-width: 600px; margin: 0 auto; } .widget { background: #ffffff; padding: 25px; margin-bottom: 30px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .widget-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: #1f2937; } .widget ul { list-style: none; padding: 0; margin: 0; } .widget ul li { padding: 10px 0; border-bottom: 1px solid #e5e7eb; } .widget ul li:last-child { border-bottom: none; } .widget ul li a { color: #2563eb; transition: color 0.3s ease; } .widget ul li a:hover { color: #1d4ed8; } /* ========================================================================== 3. Responsive Styles ========================================================================== */ /* Desktop (769px and above) */ @media (min-width: 769px) { .mobile-menu-toggle { display: none; } .mobile-menu-close { display: none !important; } .mobile-menu-header { display: none !important; } .footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } } /* Mobile (768px and below) */ @media (max-width: 768px) { /* Mobile Menu Close Button - only visible on mobile when menu is active */ .mobile-menu-close { display: none; } .primary-navigation.active .mobile-menu-close { display: flex; } /* Navigation */ .menu { flex-direction: column; } .mega-menu, .sub-menu { position: static; width: 100%; display: none; box-shadow: none; } .primary-navigation { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: #1a1a2e; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); border-radius: 0 0 8px 8px; z-index: 1000; max-height: calc(100vh - 70px); overflow-y: auto; } .primary-navigation.active { display: flex; } .mobile-menu-header { display: none; } .primary-navigation.active .mobile-menu-header { display: flex; justify-content: flex-end; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .mobile-menu-content { padding: 10px 20px 20px; flex: 1; overflow-y: auto; } .primary-navigation .menu { flex-direction: column; gap: 5px; list-style: none; padding: 0; margin: 0; } .primary-navigation .menu li { width: 100%; } .primary-navigation .menu li a { width: 100%; padding: 15px 20px; display: block; text-decoration: none; border-radius: 6px; transition: all 0.3s ease; } /* Mobile Menu Toggle */ .mobile-menu-toggle { display: block; background: rgba(255, 255, 255, 0.1); border: none; font-size: 24px; cursor: pointer; color: #ffffff; padding: 10px 15px; border-radius: 6px; transition: all 0.3s ease; position: relative; z-index: 1001; outline: none; box-shadow: none; } .mobile-menu-toggle:focus { outline: none; box-shadow: none; } .mobile-menu-toggle:focus-visible { outline: none; box-shadow: none; } .mobile-menu-toggle .menu-icon { display: inline-block; line-height: 1; } .mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.2); } .mobile-menu-toggle.active { background: rgba(74, 158, 255, 0.2); } /* Mobile Menu Close Button - styles only, visibility controlled above */ .mobile-menu-close { align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border: none; color: #ffffff; padding: 0; font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; transition: all 0.3s ease; margin: 0; outline: none; box-shadow: none; } .mobile-menu-close:focus { outline: none; box-shadow: none; } .mobile-menu-close:focus-visible { outline: none; box-shadow: none; } .mobile-menu-close .close-icon { display: block; font-weight: 300; line-height: 1; } .mobile-menu-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); } .mobile-menu-close:active { transform: rotate(90deg) scale(0.95); } .site-main { padding: 20px 0; } .content-area { padding: 20px 0; } } /* ========================================================================== WordPress Core CSS Classes ========================================================================== */ /* Image Captions */ .wp-caption { max-width: 100%; margin-bottom: 1.5em; } .wp-caption img[class*="wp-image-"] { display: block; max-width: 100%; height: auto; margin: 0 auto; } .wp-caption-text { padding: 0.5em 0; font-size: 0.9em; color: #666; text-align: center; } /* Gallery Captions */ .gallery-caption { display: block; padding: 0.5em 0; font-size: 0.9em; color: #666; text-align: center; } /* Sticky Posts */ .sticky { position: relative; } /* Post Author */ .bypostauthor { /* Style can be customized as needed */ } /* Image Alignment */ .alignleft { float: left; margin: 0 1.5em 1.5em 0; } .alignright { float: right; margin: 0 0 1.5em 1.5em; } .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; } @media (max-width: 768px) { .alignleft, .alignright { float: none; display: block; margin: 0 auto 1.5em; } } /* ========================================================================== Block Styles ========================================================================== */ /* Outline Button Style */ .wp-block-button.is-style-outline .wp-block-button__link { background-color: transparent !important; border: 2px solid currentColor; }