/*
Theme Name: TCSGYK Natural
Theme URI: https://tcsgyk.hu
Author: StartAdmin
Description: A premium WordPress theme for TCSGYK.
Version: 1.0
Text Domain: tcsgyk-natural
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.  Design Tokens
2.  Global Styles
3.  Layout
4.  Header
5.  Accessibility Toolbar
6.  Navigation
7.  Hero Section
8.  Cards & Grid
9.  Footer
--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Open+Sans:wght@300;400;600&family=Raleway:wght@400;500;600&family=Roboto:wght@300;400;500&display=swap');

:root {
    /* Colors */
    --primary: #94b7ab;
    --secondary: #544f4a;
    --medium-gray: #656d6f;
    --light-gray: #dddddd;
    --off-white: #f4f4f4;
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-nav: 'Raleway', sans-serif;

    /* Spacing */
    --gap: 32px;
    --radius: 3px;
    --shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------------------------------
2. Global Styles
--------------------------------------------------------------*/

body {
    margin: 0;
    padding: 0;
    background-color: var(--off-white);
    color: var(--medium-gray);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    background-image: url(assets/images/wood-pattern-02.png);
    background-position: 50% 50%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 4px;
    font-weight: 600;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

a:hover {
    text-decoration: underline;
}

.button,
.wp-block-button__link {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.button:hover,
.wp-block-button__link:hover {
    background-color: var(--secondary);
    text-decoration: none !important;
}

table {
	background: #f9f9f9;
	border-left: 1px solid #eaeaea;
	border-radius: 4px;
	margin: 0 0 25px 0;
	width: 100%;
}
table caption {
	color: #999;
	font-size: .85em;
	text-transform: uppercase;
}
th {
	border-top: 1px solid #eaeaea;
	border-bottom: 1px solid #eaeaea;
	border-right: 1px solid #eaeaea;
	padding: 4px 2%;
	font-weight: bold;
	text-align: left;
}
td,tbody th {
	background: #f9f9f9;
	border-top: 1px solid #eaeaea;
	border-bottom: 1px solid #eaeaea;
	border-right: 1px solid #eaeaea;
	color: #666;
	font-size: 14px;
	padding: 4px 2%;
}
tr:hover td, tr:hover th {
	background: #fff;
}
thead th,tfoot th,thead tr:hover th,tfoot tr:hover th {
	background: #d8d8d8;
}

/*--------------------------------------------------------------
3. Layout
--------------------------------------------------------------*/

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

section {
    padding: 60px 0;
}

/*--------------------------------------------------------------
4. Header
--------------------------------------------------------------*/

.site-header {
    position: relative;
    z-index: 100;
    max-width: 1400px;
    margin: 30px auto 30px auto;
}

/* Hero area: clipped to border-radius so the bg image respects rounded corners */
.header-inner {
    background: var(--white);
    background-image: url(assets/images/tcsgyk-header2.jpg);
    background-size: cover;
    background-position: top;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.top-bar {
    background: rgb(0 0 0 / 45%);
    padding: 8px 0;
    font-size: 0.8rem;
    color: #ffffff;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ffffff;
}

.header-main {
    padding: 15px 0px 5px 0px;
    text-align: center;
}

.site-logo img {
    max-width: 140px;
    height: auto;
}

.site-title {
    margin: 0px;
    letter-spacing: 15px;
}

.site-title a {
    color: var(--secondary);
    font-weight: 600;
    color: #ffffff;
}

.site-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--medium-gray);
    margin: 0px;
    padding: 0px;
    color: #ffffff;
}
.header-text, a.header-text {
    color: #ffffff;
}

/*--------------------------------------------------------------
5. Accessibility Toolbar
--------------------------------------------------------------*/

.accessibility-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 6px 14px;
}

.hc-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    border-radius: var(--radius);
    font-family: var(--font-nav);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1.4;
}

.hc-toggle-btn svg {
    fill: currentColor;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hc-toggle-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
    text-decoration: none;
}

.hc-toggle-btn:focus-visible {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

.hc-toggle-btn[aria-pressed="true"] {
    background: #fff;
    color: #000;
    border-color: #000;
}

.hc-toggle-btn[aria-pressed="true"] svg {
    fill: #000;
}

/*--------------------------------------------------------------
6. Navigation
--------------------------------------------------------------*/

.site-navigation {
    background: var(--secondary);
    color: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    position: relative;
    z-index: 200;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    color: var(--white);
    font-family: var(--font-nav);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.main-menu > li > a:hover {
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Dropdown arrow indicator */
.main-menu li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 0.85em;
    opacity: 0.7;
    flex-shrink: 0;
}
li.menu-item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* Sub-menu (dropdown) */
.main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    min-width: 240px;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--primary);
}

.main-menu li:hover > .sub-menu,
.main-menu li.focus > .sub-menu {
    display: block;
}

.main-menu .sub-menu a {
    display: block;
    padding: 11px 20px;
    color: var(--white);
    font-family: var(--font-nav);
    font-size: 0.78rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s ease, padding-left 0.15s ease;
}

.main-menu .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.2);
    padding-left: 28px;
    text-decoration: none;
}

/* Nested sub-menus fly out to the right */
.main-menu .sub-menu li {
    position: relative;
}

.main-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 2px solid var(--primary);
}

/*--------------------------------------------------------------
7. Announcement Banner
--------------------------------------------------------------*/

.announcement-banner {
    background-color: var(--secondary);
    color: var(--white);
    max-width: 1400px;
    margin: 0 auto 30px;
    border-radius: var(--radius);
}

.announcement-banner .container {
    padding-top: 0;
    padding-bottom: 0;
}

.announcement-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.announcement-label {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-nav);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
    flex-shrink: 0;
}

.announcement-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: none;
}

.announcement-excerpt {
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.announcement-link {
    color: var(--white);
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}

.announcement-link:hover {
    text-decoration: none;
    border-bottom-color: var(--white);
    color: var(--white);
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.announcement-close:hover {
    color: var(--white);
}

@media (max-width: 640px) {
    .announcement-inner {
        gap: 8px;
    }
}

/*--------------------------------------------------------------
7. Hero Carousel
--------------------------------------------------------------*/

.hero-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    height: 580px;

    margin-top: 0px;
    padding-top: 0px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Prev / Next buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* Dot indicators */
.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--white);
}

/*--------------------------------------------------------------
8. Cards & Grid
--------------------------------------------------------------*/

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin: 40px 0;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/*--------------------------------------------------------------
8b. Submenu Grid (auto-generated child page list)
--------------------------------------------------------------*/

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-top: 40px;
}

.submenu-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.submenu-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}

.submenu-card__img {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-gray);
    flex-shrink: 0;
}

.submenu-card__img--default {
    background-image: url(assets/images/card-1.jpg);
}

.submenu-card__body {
    padding: 24px;
    flex: 1;
}

.submenu-card__body h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.submenu-card__body p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

@media (max-width: 768px) {
    .submenu-grid {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
9. Footer
--------------------------------------------------------------*/


.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: var(--radius);
}

.site-footer h3 {
    color: var(--white);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {

    .featured-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CONTENT WRAPPER
======================================== */

.content-wrapper {
    padding: 0px 20px;
    margin-bottom: 30px;
}

/* Main white content box */

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px 60px;
    box-sizing: border-box;

    border-radius: var(--radius);
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Typography */

.page-title {
    font-size: 42px;
    margin-bottom: 30px;
}

/* WordPress content styling */

.page-body {
    font-size: 17px;
    line-height: 1.7;
}

/* Images inside content */

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

/* Paragraph spacing */

.page-body p {
    margin-bottom: 20px;
}

/* WordPress image alignment classes */

.page-body img.aligncenter,
.page-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.page-body img.alignleft,
.page-body .alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.page-body img.alignright,
.page-body .alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

/* Featured image on single posts */

.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/*--------------------------------------------------------------
10. Mobile Navigation
--------------------------------------------------------------*/

/* Hamburger button — hidden on desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate to × when open */
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {

    /* Nav bar: hamburger on right, menu wraps below */
    .site-navigation .container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        padding: 0;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Menu hidden by default */
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Menu visible when open */
    .site-navigation.menu-open .main-menu {
        display: flex;
    }

    .main-menu > li {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .main-menu > li > a {
        justify-content: space-between;
        padding: 14px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .main-menu > li > a:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    /* Sub-menus: static, indented, revealed on tap */
    .main-menu .sub-menu {
        position: static;
        display: none;
        min-width: 100%;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary);
        background: rgba(0, 0, 0, 0.2);
    }

    .main-menu li.mobile-open > .sub-menu {
        display: block;
    }

    .main-menu .sub-menu a {
        padding-left: 28px;
    }

    .main-menu .sub-menu a:hover {
        padding-left: 36px;
    }

    /* Nested sub-menus stay static on mobile */
    .main-menu .sub-menu .sub-menu {
        border-left: 3px solid var(--primary);
        border-top: none;
    }

    /* Accessibility toolbar: full-width button on mobile */
    .accessibility-toolbar {
        justify-content: stretch;
        padding: 8px 14px;
    }

    .hc-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    /* Content padding on small screens */
    .content-container {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .site-header {
        margin: 0 0 20px 0;
    }
}

/*--------------------------------------------------------------
10. Cookie Consent Banner
--------------------------------------------------------------*/

#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    aria-hidden: true;
}

#cookie-consent-banner.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1 1 320px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner__text a:hover,
.cookie-banner__text a:focus {
    color: var(--white);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner__btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1.2;
}

.cookie-banner__btn--accept {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus {
    background: #7aa598;
    border-color: #7aa598;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.cookie-banner__btn--reject:hover,
.cookie-banner__btn--reject:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__btn {
        flex: 1;
        text-align: center;
    }
}