/*
Theme Name: MWN Theme
Theme URI: https://nhsmuslimwomen.org
Author: NHS Muslim Women's Network
Author URI: https://nhsmuslimwomen.org
Description: Custom WordPress theme for NHS Muslim Women's Network
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mwn
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: linear-gradient(135deg, #40B7CE 0%, #2E8FA8 100%); color: white; padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.logo { display: flex; align-items: center; gap: 15px; flex: 1; min-width: 0; }
.logo a { display: flex; align-items: center; gap: 15px; text-decoration: none; color: white; }
.logo-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 8px; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { min-width: 0; }
.logo-text h1 { font-size: 1.5rem; font-weight: 600; margin: 0; line-height: 1.2; }
.logo-text p { font-size: 0.9rem; opacity: 0.9; margin: 0; line-height: 1.2; }
.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.header-btn { background: rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 25px; text-decoration: none; color: white; transition: background 0.3s; white-space: nowrap; font-size: 0.9rem; }
.header-btn:hover { background: rgba(255,255,255,0.3); }
.header-btn.primary { background: white; color: #40B7CE; }

/* Navigation */
nav { background: #2E8FA8; padding: 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-menu { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; }
.nav-menu li { flex-shrink: 0; }
.nav-menu a { display: block; color: white; text-decoration: none; padding: 15px 20px; transition: background 0.3s; font-weight: 500; }
.nav-menu a:hover, .nav-menu a.current_page_item a, .nav-menu .current-menu-item a { background: rgba(255,255,255,0.2); }

/* Hero */
.hero { background: linear-gradient(rgba(64, 183, 206, 0.9), rgba(46, 143, 168, 0.9)); color: white; padding: 80px 0; text-align: center; }
.hero h2 { font-size: 2.5rem; margin-bottom: 20px; font-weight: 600; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 30px; border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: 2px solid transparent; cursor: pointer; display: inline-block; background: none; font-size: 1rem; }
.btn-primary { background: white; color: #40B7CE; }
.btn-primary:hover { background: #f0f9ff; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border-color: white; }
.btn-secondary:hover { background: white; color: #40B7CE; }

/* Main */
main { min-height: 60vh; padding: 40px 0; }
.page-title { font-size: 2rem; color: #2E8FA8; margin-bottom: 30px; text-align: center; }

/* Stats */
.stats { background: #f8fafc; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; max-width: 1200px; margin: 0 auto; }
.stat-card { background: white; padding: 40px 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: #40B7CE; margin-bottom: 10px; }
.stat-label { color: #666; font-weight: 500; }

/* Features */
.features { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.feature-card { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #40B7CE, #2E8FA8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { color: #2E8FA8; margin-bottom: 15px; font-size: 1.3rem; }
.feature-card p { color: #666; line-height: 1.6; }

/* About/Resource Cards */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 30px; margin-bottom: 60px; }
.about-card { background: #f8fafc; padding: 30px; border-radius: 10px; border-left: 4px solid #40B7CE; }
.about-card h3 { color: #2E8FA8; margin-bottom: 15px; }
.about-card p { line-height: 1.8; color: #555; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 30px; margin-bottom: 60px; }
.resource-card { background: white; border-radius: 10px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s; }
.resource-card:hover { transform: translateY(-3px); }
.resource-tag { background: #40B7CE; color: white; padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; display: inline-block; margin-bottom: 15px; }
.resource-card h4 { color: #2E8FA8; margin-bottom: 10px; }
.resource-card p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.download-btn { background: #40B7CE; color: white; padding: 8px 16px; border-radius: 5px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: background 0.3s; display: inline-block; }
.download-btn:hover { background: #2E8FA8; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 5px; font-size: 1rem; transition: border-color 0.3s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #40B7CE; }

/* Contact Form 7 Styling */
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; }
.wpcf7-form input[type="text"], 
.wpcf7-form input[type="email"], 
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 5px; font-size: 1rem; transition: border-color 0.3s; font-family: inherit; }
.wpcf7-form input:focus, 
.wpcf7-form textarea:focus, 
.wpcf7-form select:focus { outline: none; border-color: #40B7CE; }
.wpcf7-form input[type="submit"] { background: #40B7CE; color: white; padding: 12px 30px; border: none; border-radius: 25px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s; }
.wpcf7-form input[type="submit"]:hover { background: #2E8FA8; transform: translateY(-2px); }
.wpcf7-response-output { margin: 20px 0; padding: 15px; border-radius: 5px; }
.wpcf7-not-valid-tip { color: #dc2626; font-size: 0.9rem; margin-top: 5px; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: white; margin: 10% auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 400px; position: relative; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; position: absolute; right: 15px; top: 10px; }
.close:hover { color: black; }
#member-login-form .form-group label { display: flex; align-items: center; gap: 8px; }
#member-login-form .form-group input[type="checkbox"] { width: auto; margin: 0; }

/* Footer */
footer { background: #1e40af; color: white; padding: 40px 0 20px; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h4 { margin-bottom: 15px; color: #bfdbfe; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section a { color: white; text-decoration: none; opacity: 0.8; transition: opacity 0.3s; }
.footer-section a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; text-align: center; opacity: 0.8; }

/* Badges */
.member-only { background: #f59e0b; color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; margin-left: 8px; }
.placeholder-badge { background: #94a3b8; color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; margin-left: 8px; }
.info-box { background: #fef3c7; padding: 30px; border-radius: 10px; margin-bottom: 40px; text-align: center; border: 2px solid #fde68a; }
.info-box h3 { color: #92400e; margin-bottom: 15px; }
.info-box p { color: #92400e; }

/* Content Sections */
.content-section { margin: 40px 0; }
.content-section h2 { color: #2E8FA8; margin: 40px 0 20px; }
.content-section h3 { color: #2E8FA8; margin: 30px 0 15px; }

/* WordPress Content */
.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1.5em; color: #555; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: #2E8FA8; font-weight: 600; }
.entry-content h1 { font-size: 2rem; margin: 2em 0 0.5em; }
.entry-content h2 { font-size: 1.75rem; margin: 1.75em 0 0.5em; }
.entry-content h3 { font-size: 1.5rem; margin: 1.5em 0 0.5em; }
.entry-content h4 { font-size: 1.25rem; margin: 1.25em 0 0.5em; }
.entry-content ul, .entry-content ol { margin: 1.5em 0 1.5em 2em; }
.entry-content li { margin-bottom: 0.5em; color: #555; }
.entry-content a { color: #40B7CE; text-decoration: underline; transition: color 0.3s; }
.entry-content a:hover { color: #2E8FA8; }
.entry-content blockquote { border-left: 4px solid #40B7CE; padding-left: 20px; margin: 2em 0; color: #666; font-style: italic; background: #f8fafc; padding: 20px; border-radius: 5px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5em 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.entry-content .wp-block-image { margin: 2em 0; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { color: #666; font-size: 0.9rem; text-align: center; margin-top: 0.5em; }
.entry-content strong { color: #333; font-weight: 600; }
.entry-content em { color: #555; }
.entry-content code { background: #f8fafc; padding: 2px 6px; border-radius: 3px; font-family: monospace; color: #2E8FA8; }
.entry-content pre { background: #f8fafc; padding: 20px; border-radius: 10px; overflow-x: auto; border: 1px solid #e2e8f0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; }
.entry-content th { background: #2E8FA8; color: white; padding: 12px; text-align: left; }
.entry-content td { padding: 12px; border-bottom: 1px solid #e2e8f0; }
.entry-content tr:hover { background: #f8fafc; }
.entry-content hr { border: none; border-top: 2px solid #e2e8f0; margin: 3em 0; }
.entry-content .wp-block-button__link { background: #40B7CE; color: white; padding: 12px 30px; border-radius: 25px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s; }
.entry-content .wp-block-button__link:hover { background: #2E8FA8; transform: translateY(-2px); }

/* Responsive */
@media (max-width: 1024px) {
    .logo-text h1 { font-size: 1.3rem; }
    .logo-text p { font-size: 0.8rem; }
    .nav-menu a { padding: 15px 16px; font-size: 0.9rem; }
}
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; text-align: center; }
    .logo { justify-content: center; }
    .logo a { flex-direction: column; text-align: center; }
    .header-actions { width: 100%; justify-content: center; }
    .nav-menu { flex-direction: column; width: 100%; }
    .nav-menu a { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
}