/*
Theme Name: George Design System Theme
Description: A minimal WordPress theme that uses George Design System CSS
Version: 1.0
Author: Your Name
Text Domain: george-theme
*/

/* Import George Design System CSS */
@import url('css/gds-main.min.css');
@import url('css/gds-components.min.css');

/* Basic theme reset and setup */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Main content wrapper */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styling */
.site-header {
    background: #125fe3 ;
    border-bottom: 1px solid #e1e5e9;
    padding: 1rem 0;
}

.menu-item a {
    color: #fff !important;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

.site-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.main-navigation {
    margin-left: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #007cba;
}

/* WordPress content styling */
.entry-content {
    margin-bottom: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-meta {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.entry-meta time {
    display: inline-block;
    margin-right: 1rem;
}

.entry-thumbnail img {
    width: 100%;
    height: 400px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

/* Posts container */
.posts-container {
    display: grid;
    gap: 2rem;
}

.posts-container .entry {
    transition: transform 0.2s, box-shadow 0.2s;
}

.posts-container .entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Page header for archives/search */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    margin-bottom: 1rem;
}

/* George Design System overrides for WordPress */
.wp-block-create-block-george-design-system-blocks {
    margin: 2rem 0;
}

/* Ensure George components display properly */
.g-card {
    margin-bottom: 2rem;
}

.g-heading {
    margin-bottom: 1rem;
}

/* Footer styling */
.site-footer {
    background: #125fe3;
    border-top: none;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-info {
    flex: 0 0 auto;
}

.footer-info p {
    margin: 0.5rem 0;
    color: #fff;
    font-size: 0.9rem;
}

.footer-menus {
    display: flex;
    gap: 3rem;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.footer-menu-column {
    flex: 0 0 auto;
}

.footer-nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.footer-nav-menu li {
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0 !important;
}

.footer-nav-menu li:before {
    display: none !important;
}

.footer-nav-menu a {
    text-decoration: none !important;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-nav-menu a:hover {
    text-decoration: none !important;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .menu-item a {
        color: #125fe3 !important;
        text-align: left;
    }
    
    .sub-menu {
        padding: 0 !important;
    }

    .entry-thumbnail img {
        height: auto;
        max-height: 400px;
    }
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-info {
        order: 2;
    }
    
    .footer-menus {
        flex-direction: column;
        width: 100%;
        order: 1;
        gap: 2rem;
    }
    
    .footer-menu-column {
        width: 100%;
    }
    
    .footer-nav-menu {
        align-items: center;
    }
    
    /* Force auto height for cards on mobile */
    .g-card,
    .elementor-widget-container .g-card,
    [class*="card"] {
        height: auto !important;
        min-height: auto !important;
    }
}

/* WordPress editor compatibility */
.block-editor-page .g-card {
    display: block !important;
}
