/*
Theme Name: Sri Lanka Physiotherapy Association
Theme URI: https://physio.lk
Author: SLPA Team
Description: Official WordPress theme for the Sri Lanka Physiotherapy Association.
Version: 1.0
Text Domain: slpa-theme
*/

:root {
    --primary-navy: #0f2c59;
    --primary-blue: #0284c7;
    --accent-cyan: #0ea5e9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 44, 89, 0.08);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.top-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.top-links a:hover {
    color: var(--accent-cyan);
}

/* Navigation Header */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 20px;
}

.logo i {
    font-size: 28px;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.btn-member {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: 0.3s;
}

.btn-member:hover {
    background-color: var(--primary-navy);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 44, 89, 0.92), rgba(2, 132, 199, 0.85)), 
                url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 90px 5%;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    color: #e2e8f0;
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #0284c7;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

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

/* Search Bar Box */
.search-box-container {
    max-width: 1000px;
    margin: -40px auto 60px;
    padding: 0 5%;
    position: relative;
    z-index: 10;
}

.search-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-title {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-blue);
}

.btn-search {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

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

/* Key Features Grid */
.container {
    max-width: 1250px;
    margin: 0 auto 80px;
    padding: 0 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-navy);
    font-weight: 700;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: #e0f2fe;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* News & Advocacy Section */
.news-section {
    background-color: var(--white);
    padding: 80px 5%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1250px;
    margin: 0 auto;
}

.news-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: var(--white);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
}

.news-tag {
    background: #e0f2fe;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.news-date {
    font-size: 12px;
    color: #94a3b8;
}

/* Banner CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    margin-top: 60px;
}

.cta-banner h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #091e3e;
    color: #94a3b8;
    padding: 60px 5% 20px;
    font-size: 14px;
}

.footer-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .nav-menu { display: none; }
    .hero-btns { flex-direction: column; }
    .search-card { flex-direction: column; }
    .search-input { width: 100%; }
}