/*
Theme Name: QCS Theme
Theme URI: https://www.qcscert.com/
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme based on QCS International Certification.
Version: 1.0
Text Domain: qcstheme
*/

/* Reset & Base Styles */
body {
    margin: 0;
    padding: 0 0 30px 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #EBECF6;
    background-image: url('images/back.jpg');
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    font-size: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Open Sans Condensed", sans-serif;
    color: #1F227A;
    text-transform: uppercase;
    margin-top: 0;
}

a {
    color: #404099;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.site-container {
    max-width: 1170px;
    margin: 0 auto;
    min-height: 800px;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    text-align: center;
    padding: 25px 0 0px;
}

.site-logo img {
    max-width: 150px;
    height: auto;
}

.site-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 19px;
    font-weight: bold;
    color: #404099;
    margin: 15px 0 10px;
    letter-spacing: 0px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    background-color: #404099;
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 25px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}

.main-navigation a:hover {
    background-color: #1F227A;
    text-decoration: none;
}

/* Submenu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: transparent;
    flex-direction: column;
    min-width: 260px;
    z-index: 99;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-navigation li:hover>ul {
    display: flex;
}

/* 3rd Level Submenu */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
}

.main-navigation ul ul a {
    padding: 15px 20px;
    font-size: 14px;
    background-color: #F9B000;
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.main-navigation ul ul a:hover {
    background-color: #EAEAEA;
    color: #000000;
}

/* Content Area */
.site-content {
    padding: 30px;
    display: flex;
    flex-grow: 1;
    gap: 30px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}

.content-area {
    flex: 1;
}

/* Sidebar */
.widget-area {
    width: 250px;
}

.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area li {
    border-bottom: 1px dotted #ccc;
    padding: 10px 0;
}

.widget-area li:last-child {
    border-bottom: none;
}

.widget-area a {
    color: #333;
    font-size: 14px;
    display: block;
}

.widget-area a:hover {
    color: #404099;
}

.widget-area ul ul,
.widget-item ul ul,
.widget ul ul {
    padding-left: 15px;
    margin-top: 10px;
}

.widget-area ul ul li,
.widget-item ul ul li,
.widget ul ul li {
    border-bottom: 1px dotted #ccc;
    padding: 8px 0 8px 0;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #404099;
    display: inline-block;
    padding-bottom: 5px;
}

/* Footer */
.footer_top_shadow {
    width: 100%;
    height: 26px;
    float: left;
    margin: 0;
    background: url(images/footer_bg_top.png) top center no-repeat;
}

.site-footer {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #555;
    margin-top: auto;
}

/* Hero Slider Placeholder */
.hero-slider {
    width: 100%;
    height: 500px;
    background-color: #eee;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
  margin-top:10px;
}

/* Responsive Styles */
@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 0;
    }

    .site-container {
        margin: 0;
        min-height: auto;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 1.25em;
    }

    .site-logo img {
        max-width: 120px;
    }

    .site-title {
        font-size: 20px;
    }

    .site-content {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .widget-area {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        padding: 15px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        cursor: pointer;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.toggled {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul ul {
        position: static;
        min-width: 100%;
    }

    .main-navigation li:hover>ul,
    .main-navigation li:focus-within>ul {
        display: flex;
    }
}