/* COS global css */
:root {
    --white: rgb(255, 255, 255);
    --dark: rgb(9, 10, 10);
    --logo-blue: rgb(0, 126, 219);
    --orange: rgb(246, 150, 55);
    --grayish: rgb(84, 88, 121);
    --green: rgb(63, 128, 77);
    --ltgray: rgba(0, 0, 0, 0.1);
}

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

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

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--logo-blue);
    text-decoration: none;
    letter-spacing: 2px;
    white-space: nowrap;
}

.logo a {
  color: var(--logo-blue);
  text-decoration: none;
}

.logoImg {
    width: 70px;
    height: 70px;
    text-align: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--logo-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--logo-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.imgPromo {
    width: fit-content;
    height: auto;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 8px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 126, 219, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--grayish) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--logo-blue), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--logo-blue);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--logo-blue);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--logo-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 126, 219, 0.3);
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--logo-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--grayish);
    line-height: 1.6;
}

.featureImg {
    width: 50px;
    height: 50px;
}

.featureImgmin {
    width: 46px;
    height: 46px;
}

/* Products Section */
.prodHeader-imageWrap {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 10px;
}

.prodHeader-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

.badge-free {
    background: rgba(63, 128, 77, 0.15);
    color: rgb(63, 128, 77);
}

.badge-paid {
    background: rgba(246, 150, 55, 0.15);
    color: rgb(246, 150, 55);
}


.products {
    padding: 4rem 2rem;
    background-color: rgba(84, 88, 121, 0.05);
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    border-color: var(--orange);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid var(--ltgray);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

.product-image {
    height: 200px;
    background: var(--ltgray); /* linear-gradient(45deg, var(--ltgray), var(--white)); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.product-card p {
    color: var(--grayish);
    margin-bottom: 1.5rem;
}

.learn-more {
    display: inline-block;
    color: var(--logo-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--orange);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--logo-blue);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--logo-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--grayish);
    color: var(--grayish);
}

/* Page Content Styles */
.page-header {
   background: linear-gradient(135deg, var(--dark) 0%, var(--grayish) 100%);
  color: var(--white);
  padding: 3rem 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header-text {
    text-align: center;
}

/* centred 1200 px “rail” that the icon can hook onto */
.page-header__inner {
  max-width: 1200px;
  margin: 0 auto;                 /* centre it */
  position: relative;             /* gives .prodHeader-image something to stick to */
  text-align: center;
  padding-left: 2px;  /* calc(120px + 2rem); */ /* keep text clear of the icon */
}

.page-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    border-bottom: 2px solid var(--green);
    padding-bottom: 0.5rem;
}

.section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--logo-blue);
}

.section p {
    margin-bottom: 1rem;
    color: var(--grayish);
    line-height: 1.8;
}


/* == PRODUCT DETAILS PAGE == */
/* Layout container */
.prodHeader-container {
    background: linear-gradient(135deg, var(--dark) 0%, var(--grayish) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    padding-top: 4px;
    text-align: start;
    position: fixed;
    width: 100%;
    align-items: flex-end;
    gap: 2rem;
    display: flex;
    flex-wrap: wrap;
    /* vertical-align: top; */
}

.prodHeader-text {
    flex: 1 1 60%;
    min-width: 250px;
}

.prodHeader-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}


/* Image column */
.prodHeader-image {

  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-top: 10px;
}

.prodHeader-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* === MOBILE STACK, ≤760 px ============================== */
@media (max-width: 760px) {
  .page-header__inner {
    padding: 3rem 2rem;           /* normal padding, no left offset */
  }
  .prodHeader-image {             /* let the icon join the flow */
    position: static;
    display: block;
    margin: 0 auto 1rem;
    transform: none;
  }
}


.prodDetail-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
}

/* Text column */
.prodDetail-text {
    flex: 1 1 60%;
    min-width: 250px;
}

/* Image column */
.prodDetail-image {
    flex: 1 1 35%;
    min-width: 200px;
    align-items: center;
    transition: transform .2s;
}

.prodDetail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.prodDetail-image:hover {
    transform: scale(1.1);
    border-color: var(--orange);
}

.prodDetail-image:active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Responsive: Stack image above text below 760px */
@media (max-width: 760px) {
    .prodDetail-container {
        flex-direction: column;
    }

    .prodDetail-image {
        order: -1;
        /* move image before text */
        margin-bottom: 0.5rem;
    }
}



/* Forum Styles */
.forum-category {
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.forum-category h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.forum-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--grayish);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--grayish);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--logo-blue);
}

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

.submit-btn {
    background-color: var(--logo-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--orange);
}

.smallIco {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        cursor: pointer;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hidden class for page switching */
/*
.page {
    display: block;
}

.page.active {
    display: block;
}
    */
