/* ASHRAE Pakistan Chapter - CSS Styles */

/* CSS Variables for ASHRAE Color Scheme */
:root {
    --ashrae-blue: #007A9A;
    --ashrae-green: #78BE20;
    --ashrae-dark-blue: #003B49;
    --ashrae-light-gray: #E5E5E5;
    --white: #FFFFFF;
    --text-gray: #64748B;
    --dark-bg: #1E293B;
    --border-color: #E2E8F0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--ashrae-dark-blue);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-circle {
    width: 4rem;
    height: 4rem;
    background-color: var(--ashrae-blue);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--ashrae-dark-blue);
    /* margin-bottom: 0.25rem; */
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.supporting-orgs {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.support-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.org-logos {
    display: flex;
    gap: 1rem;

   
}


.org-logo{
     width: 100px; /* or auto */
    height: auto; /* don't restrict height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

  .bw-logo {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
  }
  .bw-logo:hover {
    filter: grayscale(0%);
  }

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 5rem 0;
}

.event-badge {
    text-align: center;
    margin-bottom: 2rem;
}

.badge {
    background-color: rgba(0, 122, 154, 0.1);
    color: var(--ashrae-blue);
    border: 1px solid rgba(0, 122, 154, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    color: var(--ashrae-dark-blue);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-highlight {
    color: var(--ashrae-blue);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 500;
    max-width: 40rem;
    margin: 0 auto;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
}

.icon {
    font-size: 1.25rem;
    color: var(--ashrae-blue);
}

.hero-image {
    margin-bottom: 3rem;
}

.hero-image img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-section {
    text-align: center;
}

.cta-button {
    background-color: var(--ashrae-blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 122, 154, 0.3);
}

.cta-button:hover {
    background-color: rgba(0, 122, 154, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 154, 0.4);
}

/* Main Content */
.main-content {
    background-color: var(--white);
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ashrae-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.section-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--ashrae-blue);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    font-size: 1.25rem;
    padding: 0.5rem;
    background-color: rgba(0, 122, 154, 0.1);
    border-radius: 0.5rem;
    color: var(--ashrae-blue);
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
    color: var(--ashrae-dark-blue);
}

.content-image {
    margin: 2rem 0;
}

.content-image img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Trainer Profile */
.trainer-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trainer-image {
  position: relative;
  display: inline-block;
  width: 240px;
  height: 240px;
}

.trainer-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trainer-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(25%, 25%); /* Slightly outside, but still overlapping */
  background-color: var(--ashrae-blue);
  color: var(--white);
  padding: 0.4rem;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 122, 154, 0.3);
  z-index: 1;
}


.trainer-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ashrae-blue);
    margin-bottom: 1rem;
}

.trainer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trainer-badges .badge {
    background-color: rgba(0, 122, 154, 0.1);
    color: var(--ashrae-blue);
    border: 1px solid rgba(0, 122, 154, 0.2);
}

.trainer-description {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.trainer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ashrae-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 500;
}

/* Learning Modules */
.module-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.module-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--ashrae-blue);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.module-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 122, 154, 0.1);
    border-radius: 0.5rem;
    width: fit-content;
}

.module-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ashrae-dark-blue);
    margin-bottom: 0.5rem;
}

.module-card p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--ashrae-light-gray), var(--white));
    border: 1px solid rgba(0, 122, 154, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.takeaways h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ashrae-blue);
    margin-bottom: 1rem;
}

/* Statistics */
.feedback-highlight {
    background: linear-gradient(135deg, var(--ashrae-light-gray), var(--white));
    border: 1px solid rgba(0, 122, 154, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.feedback-highlight h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ashrae-blue);
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

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

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: rgba(0, 122, 154, 0.1);
    border-radius: 50%;
    width: fit-content;
    margin: 0 auto 1rem auto;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--ashrae-blue);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 500;
}

.future-outlook h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ashrae-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    border-top: 1px solid #334155;
    padding: 4rem 0;
}

.footer-cta {
    text-align: center;
    margin-bottom: 4rem;
    background-color: #334155;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #475569;
}

.footer-cta h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-cta p {
    color: #CBD5E1;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.contact-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--ashrae-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-header h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--white);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #CBD5E1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item .icon {
    color: var(--ashrae-blue);
    font-size: 1.25rem;
}

.contact-item a {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--ashrae-blue);
}

.contact-person {
    margin-bottom: 1rem;
}

.person-name {
    font-weight: bold;
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.person-title,
.person-term {
    color: #CBD5E1;
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .supporting-orgs {
        order: -1;
    }
    
    .trainer-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .event-details {
        flex-direction: column;
        align-items: center;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
    font-size: 28px;
    /* uncomment the following when hero-mobile.jpg is ready */
    /* background-image: url('hero-mobile.jpg'); */
    padding: 40px;
  }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}