/* ON PSİKOLOJİ - Gabriella Theme Inspired Design */

/* === CSS Variables === */
:root {
    --color-primary: #9C7A5C;
    --color-secondary: #B08968;
    --color-accent: #C5A992;
    --color-dark: #111111;
    --color-white: #FAF8F6;
    --color-light-bg: #F5F2ED;
    --color-lighter-bg: #FEFDFB;
    --color-gray: #6B7280;
    --color-gray-light: #D1D5DB;

    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Allow certain elements to be full width */
html, body, .hero-bg, .cta-bg, .newsletter-bg {
    max-width: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

/* Ensure all media elements are responsive */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

.text-italic {
    font-family: var(--font-serif);
    font-style: italic;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
}

/* === Header === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
}

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.logo::after {
    content: '.';
}

/* Hamburger Menu */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    z-index: 1001;
}

.mobile-menu span {
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
#main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--color-primary);
    padding: 2rem 0;
    display: none;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

#main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-nav li:last-child {
    border-bottom: none;
}

#main-nav a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
}

/* Dropdown Menu Styles */
#main-nav .has-submenu {
    position: relative;
}

#main-nav .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#main-nav .submenu-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

#main-nav .has-submenu.active .submenu-toggle i {
    transform: rotate(180deg);
}

#main-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

#main-nav .has-submenu.active .submenu {
    max-height: 500px;
}

#main-nav .submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#main-nav .submenu li:last-child {
    border-bottom: none;
}

#main-nav .submenu a {
    padding-left: 3rem;
    font-size: 0.85rem;
    font-weight: 400;
}

#main-nav .submenu a:hover {
    padding-left: 3.5rem;
    background: rgba(255, 255, 255, 0.15);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.25rem;
}

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

.social-icons a:hover {
    opacity: 0.7;
}

/* === Main === */
main {
    position: relative;
    background: var(--color-white);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent all sections from causing horizontal overflow */
section {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure containers don't overflow */
.container {
    overflow-x: hidden;
}

/* Tüm section'lara genel stil */
main > section:not(.hero):not(.follow-section):not(.cta-section):not(.newsletter-section) {
    position: relative;
    background: var(--color-white);
    z-index: 10;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
    z-index: 5;
}

.hero .hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Diğer bölümler için görsel */
.about-section .hero-bg,
.cta-section .cta-bg,
.newsletter-section .newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 79, 92, 0.7) 0%, rgba(44, 62, 80, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 4rem 2rem;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero h1 .text-italic {
    display: block;
    font-style: italic;
    font-size: 0.85em;
    margin: 0.5rem 0;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* === Process Section (Guiding Steps) === */
.process-section {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 6rem 0;
}

.process-section .section-subtitle {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.process-section h2 {
    text-align: center;
    color: var(--color-white);
    margin-bottom: 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    border-top: 2px dashed rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    background: var(--color-dark);
    font-size: 1.5rem;
    font-family: var(--font-serif);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.process-step p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* === About Section === */
.about-section {
    position: relative;
    background: var(--color-white);
    padding: 6rem 0;
    z-index: 10;
}

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

.about-image {
    position: relative;
    overflow: hidden;
}

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

.image-text-overlay {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    color: var(--color-white);
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    text-align: right;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    max-width: 300px;
}

.about-text {
    padding: 2rem 0;
}

.about-text .section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
}

/* === Classes Section === */
.classes-section {
    position: relative;
    background: var(--color-light-bg);
    padding: 6rem 0;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.section-title h2 {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.section-title p {
    color: var(--color-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .text-italic {
    font-size: 0.7em;
    display: block;
    color: var(--color-accent);
}

.section-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.classes-list {
    max-width: 1200px;
    margin: 0 auto;
}

.class-item {
    display: grid;
    grid-template-columns: 1fr auto 200px;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.class-item:last-child {
    border-bottom: none;
}

.class-number {
    display: none;
}

.class-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.class-status {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-bottom: 2px solid var(--color-dark);
    white-space: nowrap;
}

.class-image {
    width: 200px;
    height: 150px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.class-item:hover .class-image img {
    transform: scale(1.05);
}

/* === Podcast Section === */
.podcast-section {
    position: relative;
    background: var(--color-white);
    padding: 6rem 0;
    z-index: 10;
}

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

.podcast-card {
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-gray-light);
}

.podcast-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.podcast-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.podcast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.podcast-content {
    padding: 2rem;
}

.podcast-date {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.podcast-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

/* === CTA Section === */
.cta-section {
    position: relative;
    background: #F5F5F5;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-dark);
    background: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    max-width: 600px;
}

.cta-content .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cta-content h2 {
    margin-bottom: 2rem;
    line-height: 1.2;
}

/* === Blog Section === */
.blog-section {
    background: var(--color-light-bg);
    padding: 6rem 0;
}

.blog-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.blog-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

/* Override inline grid styles for blog items */
@media (max-width: 768px) {
    .blog-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-content .blog-date {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-gray);
}

.blog-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--color-gray);
    line-height: 1.8;
}

/* === Newsletter Section === */
.newsletter-section {
    position: relative;
    background: #F5F5F5;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    padding: 2rem;
}

.newsletter-content .section-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.newsletter-content h2 {
    color: var(--color-white);
    margin-bottom: 2rem;
}

.newsletter-content p {
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.newsletter-form input::placeholder {
    color: var(--color-gray);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-accent);
}

/* === Follow Section === */
.follow-section {
    position: relative;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    z-index: 10;
}

.follow-section h2 {
    color: var(--color-white);
    margin-bottom: 2rem;
}

.follow-section p {
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.follow-section .social-icons {
    justify-content: center;
}

.follow-section .social-icons a {
    font-size: 1.5rem;
}

/* === Footer === */
footer {
    position: relative;
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    z-index: 10;
}

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

.footer-section h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-dark);
    color: var(--color-dark);
}

.btn-outline:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* === Contact Form === */
.contact-section {
    padding: 6rem 0;
    background: var(--color-light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--color-gray);
    font-weight: 600;
}

.contact-item p {
    font-size: 1.125rem;
}

.contact-form {
    background: var(--color-white);
    padding: 3rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(127, 169, 155, 0.1);
}

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

/* ========================================
   MOBILE RESPONSIVE DESIGN - COMPLETE REDESIGN
   Mobile-First Approach with Comprehensive Breakpoints
   ======================================== */

/* === BREAKPOINT: 1200px (Large Tablets & Small Laptops) === */
@media (max-width: 1200px) {
    /* Container adjustments */
    .container,
    .nav-wrapper {
        max-width: 100%;
        padding: 0 35px;
    }

    /* Typography scaling */
    h1 {
        font-size: clamp(2.25rem, 5vw, 4.5rem);
    }

    h2 {
        font-size: clamp(1.85rem, 4.5vw, 3.5rem);
    }

    h3 {
        font-size: clamp(1.4rem, 2.8vw, 2.25rem);
    }

    /* Hero section adjustments */
    .hero {
        min-height: 85vh;
    }

    .hero-content {
        max-width: 850px;
        padding: 3.5rem 2rem;
    }

    /* Process steps grid */
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2.5rem;
    }

    /* Blog items adjustment */
    .blog-item {
        grid-template-columns: 220px 1fr;
        gap: 2.5rem;
    }

    /* Contact content stacking */
    .contact-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }

    /* Podcast grid */
    .podcast-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.75rem;
    }
}

/* === BREAKPOINT: 992px (Tablets) === */
@media (max-width: 992px) {
    /* Container adjustments */
    .container,
    .nav-wrapper {
        padding: 0 30px;
    }

    /* Typography */
    h1 {
        font-size: clamp(2rem, 4.5vw, 4rem);
    }

    h2 {
        font-size: clamp(1.75rem, 4vw, 3.25rem);
    }

    h3 {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
    }

    p {
        font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    }

    /* Header adjustments */
    header {
        padding: 1.25rem 0;
    }

    .logo {
        font-size: 1.75rem;
    }

    /* Hero section */
    .hero {
        min-height: 75vh;
        margin-top: 75px;
    }

    .hero-content {
        max-width: 750px;
        padding: 3rem 1.75rem;
    }

    /* Section padding */
    .process-section,
    .about-section,
    .classes-section,
    .podcast-section,
    .blog-section,
    .contact-section {
        padding: 5rem 0;
    }

    /* Classes section */
    .class-item {
        grid-template-columns: 1fr auto;
        gap: 2rem;
    }

    .class-image {
        display: block !important;
        width: 120px;
        height: 100px;
    }

    .class-image img {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Contact content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    /* Blog items */
    .blog-item {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 2.5rem;
    }

    /* Process steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.25rem;
    }

    .process-steps::before {
        display: none;
    }

    /* Podcast grid */
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

/* === BREAKPOINT: 768px (Mobile & Small Tablets) === */
@media (max-width: 768px) {
    /* === OVERFLOW FIXES === */
    /* Force everything to stay within viewport */
    * {
        max-width: 100vw !important;
    }

    /* But allow full width for specific elements */
    html, body, .hero-bg, .cta-bg, .newsletter-bg, header, footer, main, section {
        max-width: none !important;
    }

    /* Ensure no horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* === CONTAINER & LAYOUT === */
    .container,
    .nav-wrapper {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Remove padding from hero and full-width sections on mobile */
    .hero .container {
        padding: 0;
    }

    /* Header wrapper should be full width with edge-to-edge */
    header .nav-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    body {
        font-size: 15px;
        line-height: 1.7;
    }

    /* === HEADER & NAVIGATION === */
    header {
        padding: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Header inner content needs padding */
    header .logo,
    header .mobile-menu {
        margin-left: 20px;
        margin-right: 20px;
    }


    .logo {
        font-size: 1.5rem;
    }

    /* Mobile menu visibility - IMPORTANT for hamburger menu */
    .mobile-menu {
        display: flex !important;
        width: 30px;
        height: auto;
        gap: 6px;
    }

    .mobile-menu span {
        width: 100%;
        height: 2.5px;
    }

    /* Hide social icons on mobile header */
    .social-icons {
        display: none !important;
    }

    /* Navigation menu mobile optimizations */
    #main-nav {
        top: 73px;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #main-nav a {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    #main-nav .submenu a {
        padding-left: 2.5rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* === TYPOGRAPHY === */
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.15rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    /* === HERO SECTION - Parallax preserved === */
    .hero {
        min-height: 85vh;
        margin-top: 73px;
        padding-left: 0;
        padding-right: 0;
    }

    /* Hero content needs padding back */
    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Ensure parallax background works on mobile */
    .hero .hero-bg {
        position: fixed !important;
        z-index: -1 !important;
        height: 100vh !important;
        opacity: 0.8;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(60, 79, 92, 0.75) 0%, rgba(44, 62, 80, 0.6) 100%);
    }

    .hero-content {
        padding: 3rem 1.5rem;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem !important;
        line-height: 1.7;
        padding: 0 0.5rem !important;
        margin-bottom: 1.75rem;
    }

    /* === SECTION PADDING === */
    .process-section,
    .about-section,
    .classes-section,
    .podcast-section,
    .blog-section,
    .contact-section,
    .cta-section,
    .newsletter-section,
    .follow-section {
        padding: 3.5rem 0;
    }

    /* Override inline styles */
    section[style*="padding: 6rem 0"],
    section[style*="padding: 5rem 0"] {
        padding: 3.5rem 0 !important;
    }

    /* Hakkımızda section with background - make it taller on mobile */
    .about-section[style*="min-height"] {
        min-height: 100vh !important;
        padding: 4rem 0 !important;
    }

    .about-section .hero-bg {
        height: 100% !important;
        min-height: 100vh !important;
        object-fit: cover !important;
    }

    /* === SECTION TITLES === */
    .section-title {
        margin-bottom: 2.5rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .section-title p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section-title::after {
        width: 55px;
        height: 2.5px;
        margin-top: 1.25rem;
    }

    /* === PROCESS SECTION === */
    .process-section h2 {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .process-section .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        padding: 0 1rem;
    }

    .process-step h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .process-step p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        border-width: 2px;
    }

    /* === ABOUT SECTION === */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text {
        padding: 1.5rem 0.5rem !important;
    }

    .about-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .about-text p {
        font-size: 0.95rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.7;
    }

    .about-text .section-subtitle {
        font-size: 0.8rem;
    }

    .image-text-overlay {
        font-size: 1.25rem;
        max-width: 220px;
        line-height: 1.5;
    }

    /* === CLASSES SECTION === */
    .class-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 2.75rem 0;
        text-align: left;
    }

    .class-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .class-info p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .class-status {
        display: inline-block;
        padding: 0.65rem 1.5rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .class-image {
        display: block !important;
        width: 100%;
        height: 300px;
        margin-top: 1rem;
    }

    .class-image img {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* === PODCAST SECTION === */
    .podcast-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        margin-top: 2rem;
    }

    .podcast-card {
        display: block !important;
        width: 100%;
    }

    .podcast-image {
        width: 100% !important;
        height: 350px !important;
        display: block !important;
    }

    .podcast-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block !important;
    }

    .podcast-content {
        padding: 1.75rem;
    }

    .podcast-date {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .podcast-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    /* === BLOG SECTION === */
    .blog-list {
        margin-top: 2rem;
    }

    .blog-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 2rem 0.5rem !important;
        margin-bottom: 2.5rem;
    }

    .blog-image {
        width: 100% !important;
        height: 350px !important;
        display: block !important;
        max-width: 100% !important;
    }

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

    .blog-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .blog-content .blog-date {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .blog-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Override inline styles for blog items */
    section[style*="padding: 6rem 0"] .blog-item,
    section[style*="background: #F8F6F3"] .blog-item,
    section[style*="background: var(--color-light-bg)"] .blog-item {
        padding: 2rem 0.5rem !important;
    }

    /* === CTA SECTION === */
    .cta-section {
        min-height: 55vh;
        padding: 3.5rem 0;
    }

    .cta-content {
        padding: 3rem 2rem;
        max-width: 92%;
    }

    .cta-content h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem;
    }

    .cta-content .section-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 1rem;
    }

    .cta-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* === NEWSLETTER SECTION === */
    .newsletter-section {
        min-height: 55vh;
        padding: 3.5rem 0;
    }

    .newsletter-content {
        padding: 2.5rem 1.75rem !important;
        max-width: 95%;
    }

    .newsletter-content h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem;
    }

    .newsletter-content .section-subtitle {
        font-size: 0.75rem !important;
    }

    .newsletter-content p {
        font-size: 0.95rem !important;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 100%;
    }

    .newsletter-form input {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .newsletter-form button {
        padding: 1rem 1.75rem;
        font-size: 0.8rem;
        width: 100%;
    }

    /* === FOLLOW SECTION === */
    .follow-section {
        padding: 3.5rem 0 !important;
    }

    .follow-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem;
    }

    .follow-section p {
        font-size: 0.95rem !important;
        padding: 0 1.25rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .follow-section .social-icons {
        display: flex !important;
        gap: 1.25rem;
    }

    .follow-section .social-icons a {
        font-size: 1.35rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* === FOOTER === */
    footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .footer-section h3 {
        font-size: 0.85rem;
    }

    .footer-section a {
        font-size: 0.95rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
        padding-top: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* === BUTTONS - Touch friendly (min 44px) === */
    .btn {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Override inline button styles */
    section .btn[style*="padding: 1.125rem"],
    section .btn[style*="padding: 1rem"] {
        padding: 1rem 1.75rem !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
    }

    div[style*="display: flex"] .btn {
        font-size: 0.85rem !important;
        padding: 1rem 1.5rem !important;
        min-height: 48px !important;
    }

    /* === CONTACT SECTION === */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        padding: 2.5rem 1.75rem;
    }

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

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 4px;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 140px;
    }

    /* === INLINE STYLE OVERRIDES === */
    /* Grid layouts */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    form > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    section div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Blog item inline styles override */
    .blog-item[style*="grid-template-columns: 350px 1fr"],
    .blog-item[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Podcast grid inline styles */
    .podcast-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Heading overrides */
    section h1[style*="font-size: 3.5rem"],
    section h1[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    section h2[style*="font-size: 2rem"],
    section h2[style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }

    /* Padding overrides */
    div[style*="padding: 3rem"] {
        padding: 2rem !important;
    }

    div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    /* Image containers */
    div[style*="height: 300px"] img {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* === MOBILE OPTIMIZATION === */
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Touch optimizations */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
    }

    /* All clickable elements minimum touch target */
    a,
    button,
    input[type="submit"],
    input[type="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* === COMPREHENSIVE INLINE STYLE OVERRIDES === */
    /* Override any inline max-width styles on containers */
    .container[style*="max-width"] {
        max-width: 100% !important;
    }

    /* Override ALL inline grid styles to single column */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Ensure all flex containers wrap */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Override excessive padding */
    section[style*="padding: 6rem"],
    div[style*="padding: 4rem"] {
        padding: 3.5rem 0 !important;
    }
}

/* === BREAKPOINT: 576px (Large Mobile Phones) === */
@media (max-width: 576px) {
    /* === OVERFLOW FIXES === */
    * {
        max-width: 100vw !important;
    }

    html, body, .hero-bg, .cta-bg, .newsletter-bg, header, footer, main, section {
        max-width: none !important;
    }

    html, body {
        overflow-x: hidden !important;
    }

    /* === CONTAINER === */
    .container,
    .nav-wrapper {
        padding: 0 18px;
        max-width: 100%;
    }

    body {
        font-size: 14px;
    }

    /* === TYPOGRAPHY === */
    h1 {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* === HEADER === */
    header {
        padding: 0.9rem 0;
    }

    .logo {
        font-size: 1.4rem;
    }

    #main-nav {
        top: 68px;
    }

    #main-nav a {
        padding: 0.95rem 1.25rem;
        font-size: 0.875rem;
    }

    /* === HERO SECTION === */
    .hero {
        min-height: 80vh;
        margin-top: 68px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero .hero-bg {
        height: 100vh !important;
    }

    .hero-content {
        padding: 2.75rem 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 0.875rem !important;
        padding: 0 0.25rem !important;
    }

    /* === SECTION PADDING === */
    .process-section,
    .about-section,
    .classes-section,
    .podcast-section,
    .blog-section,
    .contact-section,
    .cta-section,
    .newsletter-section,
    .follow-section {
        padding: 3rem 0;
    }

    section[style*="padding: 6rem 0"],
    section[style*="padding: 5rem 0"],
    section[style*="padding: 3.5rem 0"] {
        padding: 3rem 0 !important;
    }

    /* Hakkımızda section with background - make it taller on mobile */
    .about-section[style*="min-height"] {
        min-height: 95vh !important;
        padding: 3.5rem 0 !important;
    }

    .about-section .hero-bg {
        height: 100% !important;
        min-height: 95vh !important;
        object-fit: cover !important;
    }

    /* === SECTION TITLES === */
    .section-title {
        margin-bottom: 2.25rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
        margin-bottom: 0.9rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .section-title::after {
        width: 50px;
        height: 2.5px;
        margin-top: 1.15rem;
    }

    /* === PROCESS SECTION === */
    .process-section h2 {
        font-size: 1.6rem;
        margin-bottom: 2.25rem;
    }

    .process-steps {
        gap: 2.25rem;
    }

    .process-step {
        padding: 0 0.75rem;
    }

    .process-step h3 {
        font-size: 1.25rem;
    }

    .process-step p {
        font-size: 0.9rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1.35rem;
    }

    /* === ABOUT SECTION === */
    .about-content {
        gap: 2.25rem;
    }

    .about-text {
        padding: 1.25rem 0.25rem !important;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-text p {
        font-size: 0.9rem !important;
        margin-bottom: 1.15rem !important;
    }

    .image-text-overlay {
        font-size: 1.15rem;
        max-width: 200px;
    }

    /* === CLASSES SECTION === */
    .class-item {
        padding: 2.5rem 0;
        gap: 1.35rem;
    }

    .class-info h3 {
        font-size: 1.4rem;
    }

    .class-status {
        padding: 0.6rem 1.35rem;
        font-size: 0.725rem;
    }

    .class-image {
        height: 280px;
    }

    /* === PODCAST SECTION === */
    .podcast-grid {
        gap: 1.75rem;
        margin-top: 1.75rem;
    }

    .podcast-image {
        height: 320px !important;
    }

    .podcast-content {
        padding: 1.5rem;
    }

    .podcast-title {
        font-size: 1.25rem;
    }

    /* === BLOG SECTION === */
    .blog-item {
        gap: 1.35rem !important;
        padding: 1.75rem 0.35rem !important;
        margin-bottom: 2.25rem;
    }

    .blog-image {
        height: 320px !important;
    }

    .blog-content h3 {
        font-size: 1.4rem;
    }

    .blog-content p {
        font-size: 0.9rem;
    }

    /* === CTA SECTION === */
    .cta-section {
        min-height: 50vh;
    }

    .cta-content {
        padding: 2.75rem 1.75rem;
    }

    .cta-content h2 {
        font-size: 1.6rem !important;
    }

    /* === NEWSLETTER SECTION === */
    .newsletter-section {
        min-height: 50vh;
    }

    .newsletter-content {
        padding: 2.25rem 1.5rem !important;
    }

    .newsletter-content h2 {
        font-size: 1.6rem !important;
    }

    .newsletter-form input {
        padding: 0.95rem 1.15rem;
        font-size: 0.875rem;
    }

    .newsletter-form button {
        padding: 0.95rem 1.5rem;
        font-size: 0.775rem;
    }

    /* === FOLLOW SECTION === */
    .follow-section {
        padding: 3rem 0 !important;
    }

    .follow-section h2 {
        font-size: 1.6rem !important;
    }

    .follow-section p {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }

    .follow-section .social-icons a {
        font-size: 1.25rem;
    }

    /* === FOOTER === */
    footer {
        padding: 3rem 0 1.75rem;
    }

    .footer-content {
        gap: 2.25rem;
        margin-bottom: 2.25rem;
    }

    /* === BUTTONS === */
    .btn {
        padding: 0.95rem 1.75rem;
        font-size: 0.8rem;
    }

    section .btn[style*="padding"],
    div[style*="display: flex"] .btn {
        padding: 0.95rem 1.5rem !important;
        font-size: 0.85rem !important;
    }

    /* === CONTACT FORM === */
    .contact-form {
        padding: 2.25rem 1.5rem;
    }

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

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.95rem;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 130px;
    }

    /* === INLINE STYLE OVERRIDES === */
    /* Blog item inline styles override */
    .blog-item[style*="grid-template-columns: 350px 1fr"],
    .blog-item[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.35rem !important;
    }

    /* Podcast grid inline styles */
    .podcast-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.35rem !important;
    }

    section h1[style*="font-size"] {
        font-size: 1.85rem !important;
    }

    section h2[style*="font-size"] {
        font-size: 1.6rem !important;
    }

    div[style*="padding: 3rem"],
    div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    div[style*="height: 300px"] {
        height: 240px !important;
    }
}

/* === BREAKPOINT: 480px (Small Mobile Phones) === */
@media (max-width: 480px) {
    /* === OVERFLOW FIXES === */
    * {
        max-width: 100vw !important;
    }

    html, body, .hero-bg, .cta-bg, .newsletter-bg, header, footer, main, section {
        max-width: none !important;
    }

    html, body {
        overflow-x: hidden !important;
    }

    /* === CONTAINER === */
    .container,
    .nav-wrapper {
        padding: 0 15px;
        max-width: 100%;
    }

    body {
        font-size: 14px;
        line-height: 1.6;
    }

    /* === TYPOGRAPHY === */
    h1 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    h4 {
        font-size: 1rem;
    }

    p {
        font-size: 0.875rem;
        line-height: 1.65;
        margin-bottom: 1.15rem;
    }

    /* === HEADER === */
    header {
        padding: 0.85rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .mobile-menu {
        width: 28px;
        gap: 5px;
    }

    .mobile-menu span {
        height: 2px;
    }

    #main-nav {
        top: 64px;
        padding: 1.25rem 0;
    }

    #main-nav a {
        padding: 0.875rem 1.15rem;
        font-size: 0.85rem;
        min-height: 46px;
    }

    #main-nav .submenu a {
        padding-left: 2.25rem;
        font-size: 0.8rem;
    }

    #main-nav .submenu a:hover {
        padding-left: 2.75rem;
    }

    /* === HERO SECTION - Parallax maintained === */
    .hero {
        min-height: 75vh;
        margin-top: 64px;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero .hero-bg {
        position: fixed !important;
        z-index: -1 !important;
        height: 100vh !important;
        opacity: 0.75;
    }

    .hero-content {
        padding: 2.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.65rem;
        line-height: 1.25;
        margin-bottom: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        margin-bottom: 1.15rem;
    }

    .hero-description {
        font-size: 0.825rem !important;
        padding: 0 !important;
        margin-bottom: 1.5rem;
        line-height: 1.65;
    }

    /* === SECTION PADDING === */
    .process-section,
    .about-section,
    .classes-section,
    .podcast-section,
    .blog-section,
    .contact-section,
    .cta-section,
    .newsletter-section,
    .follow-section {
        padding: 2.5rem 0;
    }

    section[style*="padding"] {
        padding: 2.5rem 0 !important;
    }

    /* Hakkımızda section with background - make it taller on mobile */
    .about-section[style*="min-height"] {
        min-height: 90vh !important;
        padding: 3rem 0 !important;
    }

    .about-section .hero-bg {
        height: 100% !important;
        min-height: 90vh !important;
        object-fit: cover !important;
    }

    /* === SECTION TITLES === */
    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2 {
        font-size: 1.45rem !important;
        margin-bottom: 0.85rem;
    }

    .section-title p {
        font-size: 0.85rem !important;
        line-height: 1.6;
    }

    .section-title::after {
        width: 45px;
        height: 2px;
        margin-top: 1rem;
    }

    /* === PROCESS SECTION === */
    .process-section h2 {
        font-size: 1.45rem;
        margin-bottom: 2rem;
    }

    .process-section .section-subtitle {
        font-size: 0.7rem;
    }

    .process-steps {
        gap: 2rem;
    }

    .process-step {
        padding: 0 0.5rem;
    }

    .process-step h3 {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }

    .process-step p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .step-number {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    /* === ABOUT SECTION === */
    .about-content {
        gap: 2rem;
    }

    .about-text {
        padding: 1rem 0 !important;
    }

    .about-text h2 {
        font-size: 1.45rem;
        margin-bottom: 1.15rem;
    }

    .about-text p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .about-text .section-subtitle {
        font-size: 0.7rem;
    }

    .image-text-overlay {
        font-size: 1rem;
        max-width: 175px;
        line-height: 1.45;
    }

    /* === CLASSES SECTION === */
    .class-item {
        padding: 2.25rem 0;
        gap: 1.25rem;
    }

    .class-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
    }

    .class-info p {
        font-size: 0.85rem;
    }

    .class-status {
        padding: 0.55rem 1.25rem;
        font-size: 0.7rem;
    }

    .class-image {
        height: 260px;
        margin-top: 1rem;
    }

    /* === PODCAST SECTION === */
    .podcast-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .podcast-image {
        height: 300px !important;
    }

    .podcast-content {
        padding: 1.35rem;
    }

    .podcast-date {
        font-size: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .podcast-title {
        font-size: 1.15rem;
        margin-bottom: 0.85rem;
    }

    /* === BLOG SECTION === */
    .blog-list {
        margin-top: 1.5rem;
    }

    .blog-item {
        gap: 1.25rem !important;
        padding: 1.5rem 0.25rem !important;
        margin-bottom: 2rem;
    }

    .blog-image {
        height: 300px !important;
    }

    .blog-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
    }

    .blog-content .blog-date {
        font-size: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .blog-content p {
        font-size: 0.85rem;
    }

    /* === CTA SECTION === */
    .cta-section {
        min-height: 45vh;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
        max-width: 96%;
    }

    .cta-content h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.25rem;
    }

    .cta-content .section-subtitle {
        font-size: 0.65rem !important;
        margin-bottom: 0.95rem;
    }

    .cta-content p {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    /* === NEWSLETTER SECTION === */
    .newsletter-section {
        min-height: 45vh;
    }

    .newsletter-content {
        padding: 2rem 1.25rem !important;
    }

    .newsletter-content h2 {
        font-size: 1.45rem !important;
        margin-bottom: 1.25rem;
    }

    .newsletter-content .section-subtitle {
        font-size: 0.65rem !important;
        margin-bottom: 0.95rem;
    }

    .newsletter-content p {
        font-size: 0.85rem !important;
        margin-bottom: 1.75rem;
        line-height: 1.65;
    }

    .newsletter-form {
        gap: 0.65rem;
    }

    .newsletter-form input {
        padding: 0.85rem 1rem;
        font-size: 0.825rem;
    }

    .newsletter-form input::placeholder {
        font-size: 0.7rem;
    }

    .newsletter-form button {
        padding: 0.85rem 1.35rem;
        font-size: 0.7rem;
    }

    /* === FOLLOW SECTION === */
    .follow-section {
        padding: 2.5rem 0 !important;
    }

    .follow-section h2 {
        font-size: 1.45rem !important;
        margin-bottom: 1.25rem;
    }

    .follow-section p {
        font-size: 0.85rem !important;
        padding: 0 0.85rem;
        margin-bottom: 1.75rem;
        line-height: 1.65;
    }

    .follow-section .social-icons {
        gap: 1rem;
    }

    .follow-section .social-icons a {
        font-size: 1.2rem;
        min-width: 46px;
        min-height: 46px;
    }

    /* === FOOTER === */
    footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h3 {
        font-size: 0.775rem;
        margin-bottom: 1.15rem;
    }

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

    .footer-section a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 1.75rem;
        font-size: 0.775rem;
        gap: 1rem;
    }

    /* === BUTTONS - Touch friendly === */
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        min-height: 46px;
    }

    section .btn[style*="padding"],
    div[style*="display: flex"] .btn {
        padding: 0.85rem 1.35rem !important;
        font-size: 0.8rem !important;
        min-height: 46px !important;
    }

    /* === CONTACT SECTION === */
    .contact-form {
        padding: 2rem 1.25rem;
    }

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

    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.55rem;
        letter-spacing: 0.08em;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.85rem;
        font-size: 0.875rem !important;
        min-height: 46px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    /* === INLINE STYLE OVERRIDES === */
    section h1[style*="font-size"] {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
    }

    section h2[style*="font-size"] {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
    }

    section h3[style*="font-size"] {
        font-size: 1.15rem !important;
    }

    div[style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }

    div[style*="padding: 2rem"],
    div[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }

    div[style*="height: 300px"],
    div[style*="height: 240px"] {
        height: 220px !important;
    }

    section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Blog item inline styles override */
    .blog-item[style*="grid-template-columns: 350px 1fr"],
    .blog-item[style*="grid-template-columns: 300px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Podcast grid inline styles */
    .podcast-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* === MOBILE-SPECIFIC ELEMENTS === */
    /* WhatsApp and Call buttons */
    a[href^="https://wa.me"],
    a[href^="tel:"] {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.4rem !important;
        bottom: 15px !important;
    }

    a[href^="https://wa.me"] {
        right: 15px !important;
    }

    a[href^="tel:"] {
        left: 15px !important;
    }

    /* Tables overflow handling */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
    }

    /* === ACCESSIBILITY & PERFORMANCE === */
    /* Prevent horizontal overflow */
    body,
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Touch optimization */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Allow text selection for content */
    p, h1, h2, h3, h4, h5, h6, span, li {
        -webkit-user-select: text;
        user-select: text;
    }

    /* Enable text selection in inputs */
    input, textarea {
        -webkit-user-select: text;
        user-select: text;
    }

    /* All images fully responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Ensure all touch targets are minimum 44px */
    a,
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    select {
        min-height: 46px;
        min-width: 46px;
    }
}

/* === Additional Overflow Prevention === */
/* Prevent wide content from causing horizontal scroll */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Prevent fixed widths from breaking layout */
[style*="width:"],
[style*="min-width:"] {
    max-width: 100% !important;
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
