/*
Theme Name: My Custom Theme
Theme URI: http://example.com/my-custom-theme
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/

/* Basic Reset & Body */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.site {
    overflow: hidden; /* To contain floated elements */
}

/* Header Styles */
.site-header {
    width: 100%;
    box-sizing: border-box;
    background: #FFF9E5;
    position: relative;
    padding-top: 5px; /* Adjust based on your header-border-top height */
    padding-bottom: 5px; /* Adjust based on your header-border-bottom height */
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Clear floats within this wrapper */
}

.site-branding {
    float: left;
}

.site-branding .custom-logo-link img {
    display: block;
    max-height: 80px;
    width: auto;
}

/* Fallback for site title if no custom logo */
.site-branding .site-title,
.site-branding .site-description {
    margin: 0;
    padding: 0;
}

.site-branding .site-title a {
    text-decoration: none;
    color: #333;
    font-size: 2em;
}

/* Menu Toggle Button (hidden by default on desktop) */
.menu-toggle {
    display: none; /* Hide on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Position relative to header-content-wrapper */
    top: 50%; /* Center vertically */
    right: 20px;
    transform: translateY(-50%); /* Adjust for exact vertical centering */
    z-index: 100; /* Ensure it's above other content */
}

.menu-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* Animation for menu icon when active */
.menu-toggle.toggled-on .menu-icon {
    background-color: transparent; /* Hide middle bar */
}

.menu-toggle.toggled-on .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.toggled-on .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

.screen-reader-text {
    /* Visually hide text but keep it accessible for screen readers */
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}


/* Main Navigation (desktop styles) */
.main-navigation {
    float: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for horizontal menu items */
    align-items: center;
    height: 80px; /* Match logo height for vertical alignment */
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #000000;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0073aa;
}


/* Header Border Images */
.header-border-top,
.header-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 15px;
    background-repeat: repeat-x;
    background-size: auto 100%;
}

.header-border-top {
    top: 0;
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/blue-red-sambalpuri-design.png');
}

.header-border-bottom {
    bottom: 0;
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/blue-red-sambalpuri-design.png');
}

/* Footer Styles */
footer {
    width: 100%;
    box-sizing: border-box;
    background:#FFF9E5;
    color: #000000;
    text-align: center;
    position: relative;
    clear: both;
    padding-top: 5px;
    padding-bottom: 5px;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.site-info {
    padding: 20px 0;
}

.site-info a {
    color: #0073aa;
    text-decoration: none;
}

/* Footer Border Images */
.footer-border-top,
.footer-border-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 15px;
    background-repeat: repeat-x;
    background-size: auto 100%;
}

.footer-border-top {
    top: 0;
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/blue-red-sambalpuri-design.png');
}

.footer-border-bottom {
    bottom: 0;
    background-image: url('https://nibeditapublicschool.com/wp-content/uploads/2025/07/blue-red-sambalpuri-design.png');
}

/* Main Content Area (basic styling) */
#primary {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content-wrapper,
    .footer-content-wrapper {
        padding: 10px;
    }

    .site-branding {
        float: none; /* Remove float for logo */
        text-align: center;
        width: 80%;
        margin-bottom: 5px; /* Add space below logo */
    }

    .site-branding .custom-logo-link img {
    display: block;
    max-height: 60px;
    width: 95%;
    }

    /* Show menu toggle button on small screens */
    .menu-toggle {
        display: block;
        position: absolute; /* Keep it absolute for positioning */
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    /* Hide desktop navigation by default on small screens */
    .main-navigation {
        float: none; /* Remove float */
        width: 100%;
        display: none; /* Hide the menu by default */
        text-align: center;
        background-color: #f0f0f0; /* Background for dropdown menu */
        position: absolute; /* Position below header content */
        top: calc(80px + 20px + 20px); /* Adjust based on logo height + padding */
        left: 0;
        z-index: 99;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    /* Show menu when toggled-on */
    .main-navigation.toggled-on {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column; /* Stack menu items vertically */
        height: auto;
        padding: 0;
    }

    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #e0e0e0; /* Separator for menu items */
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block; /* Make links fill the width */
        padding: 15px 20px;
    }

}

