/*
Theme Name: Cytonomics
Theme URI: https://cytonomics.com
Author: Cytonomics Team
Author URI: https://cytonomics.com
Description: A modern, responsive WordPress theme with advanced features and multi-version support
Version: 1.0
Requires at least: 4.7
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cytonomics
Tags: custom, responsive, modern, advanced, multi-version, accessibility-ready, translation-ready, rtl-language-support, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, block-styles, wide-blocks, full-width-template, sticky-post, theme-options, footer-widgets, blog, portfolio, e-commerce
*/

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    color: #00A3FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0082CC;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00A3FF;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #0082CC;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    
    width: 100%;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    border-color: #00A3FF;
    outline: none;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    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;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Clearfix */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* WordPress Core Classes */
.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    margin: 0.8075rem 0;
    font-size: 0.875rem;
    font-style: italic;
}

.gallery {
    margin-bottom: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5rem;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* Header Styles */
.site-header {
    background: var(--background-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 30px; /* Account for promo banner */
    left: 0;
    width: 100%;
    z-index: 1000;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
/*     margin: 0 auto;
    padding: 0 1rem; */
}

/* Navigation Styles */
.main-navigation {
    padding: 1rem 0;
    position: relative;
    z-index: 1001;
    background: transparent;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
}

.main-navigation li {
    margin: 0 1rem;
    position: relative;
    background: transparent;
}





/* Content Area */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
   
}

/* Post Styles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

/* Footer Styles */
.site-footer {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 0.5rem 0;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .entry-title {
        font-size: 2rem;
    }
}

/* Block Editor Styles */
.wp-block {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block[data-align="wide"] {
    max-width: 1400px;
}

.wp-block[data-align="full"] {
    max-width: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e0e0e0;
        --background-color: #1a1a1a;
        --border-color: #444;
    }
}

/* Mega Menu Styles */
.has-mega-template {
    position: relative;
}

.mega-menu-template-container {
    position: fixed;
    top: 160px;
    left: 0;
    width: 100%;
    height: calc(100vh - 160px);
    background-color:rgb(250, 250, 250);
    z-index: 99;
    display: none;
    overflow-y: scroll;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* -webkit-overflow-scrolling: touch; Smooth scrolling on iOS */
}

/* When mega menu is active */
body.mega-menu-active {
    overflow: auto !important;
    height: auto !important;
}

.mega-menu-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: transparent;
    min-height: calc(100vh - 170px); /* Ensure content fills the space */
}

/* Elementor specific styles */
.mega-menu-content .elementor {
    width: 100%;
    position: relative;
    z-index: 1;
}

.mega-menu-content .elementor-section-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

.mega-menu-content .e-con-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.mega-menu-content .elementor-widget-container {
    padding: 10px;
    position: relative;
    z-index: 1;
}

/* Remove the hover display rule as we're handling it with JavaScript */
.has-mega-template:hover .mega-menu-template-container {
    display: none !important;
}

.mega-menu-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mega-menu-error {
    text-align: center;
    padding: 20px;
    color: #f00;
} 