/* 
  HealthEdge Theme Main Styles
  Colors based on reference design:
  Dark Blue: #1a2a47
  Light Blue: #2b74d6
  White: #ffffff
  Text Gray: #666666
*/

:root {
    --primary-color: #1a2a47;
    --secondary-color: #2b74d6;
    --accent-color: #4da6ff;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #f8fbff;
    --white: #ffffff;
    --border-color: #e5e5e5;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1200px;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background-color: var(--background-color);
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 15px;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 250px;
    display: none !important; /* Hide by default */
    flex-direction: column;
    padding: 15px 0;
    border-top: 3px solid var(--secondary-color);
    z-index: 10;
}

.has-dropdown:hover .dropdown {
    display: flex !important; /* Show on hover */
}

.dropdown li {
    width: 100%;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
}

.dropdown a:hover {
    background-color: var(--background-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-container {
    padding-bottom: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p {
    color: #a0aabf;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul a {
    color: #a0aabf;
    font-size: 14px;
}

.footer-widget ul a:hover {
    color: var(--accent-color);
}

.logo-text-footer {
    color: var(--white);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    font-weight: bold;
}

.social-icon:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    background-color: #121d33;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #8a96ab;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    color: #8a96ab;
    margin-left: 20px;
}

.legal-links a:hover {
    color: var(--white);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Grids for content */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog specific */
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    background-color: #e9eff7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aabf;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--primary-color);
}

.blog-title a:hover {
    color: var(--secondary-color);
}
