/* 
* Canadian Business Grants Hub Styles
* Theme: Modern, professional design for a business funding resource
*/

/* Base styles and typography */
:root {
  --primary-color: #1e5f74;
  --secondary-color: #2d8fb5;
  --accent-color: #f7941d;
  --text-color: #333333;
  --text-light: #666666;
  --light-bg: #f9f9f9;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --white: #ffffff;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --container-max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

ul {
  list-style-type: none;
}

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

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

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover, 
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after,
nav ul li a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Button styles */
.btn-primary, 
.btn-secondary,
button[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(30, 95, 116, 0.85), rgba(30, 95, 116, 0.9)), url('images/1.jpg');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Page Banner */
.page-banner {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
  background-image: linear-gradient(rgba(30, 95, 116, 0.85), rgba(30, 95, 116, 0.9)), url('images/2.jpg');
  background-size: cover;
  background-position: center;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-banner.small {
  padding: 40px 0;
}

.post-meta {
  color: var(--white);
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
}

/* Features section */
.features {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.feature-box .icon svg {
  width: 50px;
  height: 50px;
}

.feature-box h3 {
  margin-bottom: 15px;
}

/* Latest posts section */
.latest-posts {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.view-all {
  font-weight: 500;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: var(--white);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
}

.post-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

.read-more:hover {
  color: var(--secondary-color);
}

/* Stats section */
.stats-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.stats-section h2 {
  margin-bottom: 40px;
}

.live-chart {
  max-width: 800px;
  margin: 0 auto 40px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.current-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.time-label {
  font-weight: 600;
  margin-bottom: 10px;
}

#live-clock {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  background-color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Call-to-action section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--accent-color);
}

.newsletter-form button:hover {
  background-color: #e78613;
}

/* Footer styles */
footer {
  background-color: #2c3e50;
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-column h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-column p {
  color: #b3b3b3;
  font-size: 0.95rem;
}

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

.footer-column ul li a {
  color: #b3b3b3;
  transition: var(--transition);
}

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

.footer-column address p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-column address p svg {
  margin-right: 10px;
  flex-shrink: 0;
}

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

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

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #b3b3b3;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  padding: 15px 0;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-content p {
  margin-bottom: 15px;
  text-align: center;
  max-width: 800px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cookie-btn {
  padding: 8px 15px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-btn.accept {
  background-color: var(--success-color);
  color: white;
}

.cookie-btn.customize {
  background-color: var(--white);
  color: var(--text-color);
}

.cookie-btn.decline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-link {
  color: var(--white);
  text-decoration: underline;
  font-size: 0.9rem;
}

.cookie-link:hover {
  color: var(--accent-color);
}

/* Blog page styles */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
  height: 250px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.blog-details h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.blog-details p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Blog post page styles */
.blog-post {
  padding: 60px 0;
}

.blog-post .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.post-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.post-body {
  padding: 30px;
}

.post-body h2 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.post-body h3 {
  margin-top: 25px;
  margin-bottom: 10px;
}

.post-body ul, .post-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.post-body ul li, .post-body ol li {
  margin-bottom: 8px;
}

.post-body ul {
  list-style-type: disc;
}

.post-body ol {
  list-style-type: decimal;
}

blockquote {
  background-color: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
}

.share-post {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.social-share {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-bg);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-color);
}

.social-share a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.nav-link {
  padding: 10px 15px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

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

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.widget {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 25px;
  margin-bottom: 30px;
}

.widget h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.widget.recent-posts ul li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.widget.recent-posts ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget.recent-posts ul li a {
  display: block;
  transition: var(--transition);
  font-weight: 500;
}

.widget.recent-posts ul li a:hover,
.widget.recent-posts ul li a.active {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-widget p {
  margin-bottom: 20px;
}

/* About page styles */
.about-intro {
  padding: 80px 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.value-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.value-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.value-box .icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.value-box .icon svg {
  width: 50px;
  height: 50px;
}

.team-section {
  padding: 80px 0;
  background-color: var(--light-bg);
  text-align: center;
}

.team-intro {
  max-width: 800px;
  margin: 0 auto 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin: 20px 0 5px;
}

.team-member p {
  padding: 0 20px;
  margin-bottom: 15px;
}

.team-member p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0 20px;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--light-bg);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-color);
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.stat-box {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
}

.testimonials {
  padding: 80px 0;
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin: 20px;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.author-name {
  font-weight: 600;
  color: var(--primary-color);
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact page styles */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info > p {
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(30, 95, 116, 0.1);
  border-radius: 50%;
  margin-right: 15px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-text h3 {
  margin-bottom: 5px;
}

.contact-text p {
  margin-bottom: 0;
}

.social-links a {
  margin-right: 10px;
}

.office-hours h3 {
  margin-bottom: 10px;
}

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 15px;
}

.contact-form-container > p {
  margin-bottom: 25px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 3px;
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.map-section {
  padding: 60px 0;
  background-color: var(--light-bg);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.faq-section {
  padding: 80px 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-body {
  padding: 40px;
  text-align: center;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success-color);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: var(--success-color);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.modal-body h2 {
  margin-bottom: 15px;
}

.modal-body p {
  margin-bottom: 25px;
}

.close-btn {
  margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .blog-post .container {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    padding: 15px;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  .footer-columns {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .post-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
}
