/*
Theme Name: GPT Course Website
Theme URI: https://gptcourse.pl
Author: Filip
Description: Motyw dla strony kursu GPT
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpt-course
*/

/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Header and Navigation Styles */
.main-header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
    height: auto; /* można zostawić auto lub podać konkretną wysokość */
}

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

.logo {
    display: flex;
    align-items: center;
    margin-right: 4rem;
}

.logo img,
.custom-logo {
    height: 100px;
    width: auto;
    max-width: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 4rem;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.mobile-header-title {
    display: none;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 20px;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--secondary-color);
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* WordPress specific menu styles */
.custom-logo-link {
    display: block;
}

.menu-menu-glowne-container {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://startai-kursy.pl/wp-content/uploads/2025/10/grafikahero-2.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Mission Section */
.mission {
    padding: 5rem 0;
    background: var(--light-bg);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mission-image img {
    width: 100%;
    border-radius: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* ---- Swiper wrapper – miejsce na kropki ---- */
.testimonials .swiper {
    padding-bottom: 4rem;          /* odstęp na paginację */
}

/* ---- Każdy slajd ---- */
.testimonials .swiper-slide {
    display: flex;                 /* pozwala wycentrować kartę */
    height: auto;                  /* nie wymuszaj sztywnej wysokości */
}

/* ---- Karta z opinią ---- */
.testimonial-card {
    background: var(--white, #ffffff);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;

    /* Centrowanie treści w pionie i poziomie */
    display: flex;
    align-items: center;
    justify-content: center;
 	flex-direction:column;
    width: 100%;
    height: 100%;
}

/* ---- Strzałki nawigacji ---- */
.testimonials .swiper-button-prev,
.testimonials .swiper-button-next {
    color: var(--primary, #333333);
    width: 48px;
    height: 48px;
}

.testimonials .swiper-button-prev::after,
.testimonials .swiper-button-next::after {
    font-size: 32px;                /* trochę większe ikony */
}

/* ---- Kropki (paginacja) ---- */
.testimonials .swiper-pagination-bullet {
    background: var(--primary, #333333);
    opacity: 0.35;
}

.testimonials .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ---- Responsywność (opcjonalne, bo liczba kart sterowana w JS) ---- */
@media (max-width: 1023px) {
    .testimonials .swiper {
        padding-bottom: 3rem;
    }
}

@media (max-width: 767px) {
    .testimonials {
        padding: 3rem 0;
    }

    .testimonials h2 {
        margin-bottom: 2rem;
    }
}

/* ----- Star rating ----- */
.star-rating {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.star-rating svg {
    width: 24px;
    height: 24px;
    fill: #ffc107; /* Gold color */
    margin: 0 2px;
}

/* Prompts Section */
.prompts {
    padding: 5rem 0;
    background: var(--light-bg);
    text-align: center;
}

.prompts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.prompt-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: var(--transition);
}

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

.prompt-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-button-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2563eb;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button-main i {
    font-size: 20px;
}

.cta-button-main:hover {
    background: var(--secondary-color);
}

/* Newsletter Section */
body.home .newsletter {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
}

body.home .newsletter .newsletter-content {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

body.home .newsletter .newsletter-content h2 {
    margin-bottom: 1rem;
}

body.home .newsletter .newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

body.home .newsletter form.newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

body.home .newsletter form.newsletter-form input[type="email"] {
    width: 30% !important;
    flex: 1 !important;
    padding: 1rem !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    margin: 0 !important;
    background: var(--white) !important;
}

body.home .newsletter .submit-button-home {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    white-space: nowrap;
    margin: 0;
    width: auto;
    min-width: auto;
    display: inline-block;
    text-transform: none;
    box-shadow: none;
	text-decoration: none;
}

body.home .newsletter .submit-button-home:hover {
    background: var(--text-color) !important;
    transform: none !important;
}

@media (max-width: 768px) {
    body.home .newsletter form.newsletter-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body.home .newsletter form.newsletter-form input[type="email"] {
        width: 100% !important;
    }

    body.home .newsletter .newsletter-content h2 {
        font-size: 2rem;
    }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .logo img,
    .custom-logo {
        height: 60px;
    }

    .hero {
        padding-top: 80px;
    }

    .nav-container {
        position: relative;
	}

    .logo {
        flex: 0 0 auto;
		margin-right: 0rem;
    }

    .mobile-header-title {
        display: block;
        flex: 1;
        text-align: center;
        font-weight: 600;
        font-size: 1.2rem;
        color: var(--text-color);
        margin: 0 1rem;
    }

    .mobile-menu {
        display: block;
        flex: 0 0 auto;
        margin-left: 1rem;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu.active i {
        transform: rotate(90deg);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border-radius: 0 0 4px 4px;
        margin-right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem;
        white-space: nowrap;
    }

    .nav-links a:hover {
        background: var(--light-bg);
        border-radius: 4px;
    }
}

@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}

/* Footer Styles */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

/* Reset podstawowy */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* body jako flex-kontener w pionie */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% wysokości widoku przeglądarki */
}

/* main zajmuje całą przestrzeń dostępną do "wypychania" stopki na dół */
main {
    flex: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Dokładnie 3 kolumny o tej samej szerokości */
    gap: 2rem; /* Odstęp między kolumnami */
    justify-items: center; /* Wyrównanie kolumn do środka */
    align-items: start; /* Wyrównanie treści do góry */
    text-align: left; /* Wyśrodkowanie tekstu wewnątrz każdej kolumny */
    margin-bottom: 2rem; /* Dodatkowy odstęp od dolnej części stopki */
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links, .social-icons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

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

    .mission-content {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

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

    .footer-social-icons {
        justify-content: center;
    }
}