/*
Theme Name: saciti theme
Author: Llewelyn Marillier
Description: Custom theme conversion for saciti.co.za structure.
Version: 1.0
*/


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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
        }

		.header {
			background: transparent;
			padding: 1.5rem 0;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			z-index: 999;
		}

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

        .logo-container {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            position: absolute;
            left: 2rem;
            top: 2rem;
        }

        .logo {
            width: 300px;
            height: 300px;
            position: relative;
            z-index: 1000;
        }
        
        .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .logo-text {
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
            display: none;
        }

        nav {
            margin-left: auto;
            padding-right: 2rem;
        }

        .menu-toggle {
            display: none;
            background: #1a4d2e;
            color: #ffffff;
            border: none;
            padding: 0.6rem 1.4rem;
            border-radius: 999px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
        }

        .menu-toggle:focus {
            outline: 2px solid #ffffff;
            outline-offset: 2px;
        }

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

        .nav-phone {
            color: white;
            font-weight: 600;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
            font-size: 1.1rem;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.3s;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
            font-size: 1.1rem;
        }

        nav a:hover {
            opacity: 0.8;
        }

        /* Courses mega menu */
        nav .nav-item-courses {
            position: relative;
        }

        nav .courses-mega {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 0.5rem;
            width: 560px;
            max-width: 95vw;
            background: white;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.25);
            padding: 1.5rem;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s, visibility 0.25s;
            z-index: 1001;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        nav .nav-item-courses:hover .courses-mega {
            opacity: 1;
            visibility: visible;
        }

        .courses-mega h4 {
            color: #1a4d2e;
            font-size: 1rem;
            margin: 0 0 0.75rem 0;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #1a4d2e;
            grid-column: 1 / -1;
        }

        .courses-mega .mega-col h4 {
            grid-column: auto;
            border-bottom: none;
            padding-bottom: 0;
        }

        .courses-mega .mega-submenu {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .courses-mega .mega-submenu li {
            margin-bottom: 0.75rem;
        }

        .courses-mega .mega-submenu li:last-child {
            margin-bottom: 0;
        }

        .courses-mega .mega-submenu a {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: #333;
            text-decoration: none;
            padding: 0.5rem 0;
            border-radius: 8px;
            transition: background 0.2s;
            text-shadow: none;
        }

        .courses-mega .mega-submenu a:hover {
            background: #e8f5e9;
            color: #1a4d2e;
            opacity: 1;
        }

        .courses-mega .mega-thumb {
            width: 64px;
            height: 64px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
        }

        .courses-mega .mega-thumb-none {
            width: 64px;
            height: 64px;
            border-radius: 8px;
            background: #e8f5e9;
            flex-shrink: 0;
        }

        .hero {
            position: relative;
            height: 500px;
            display: flex;
            overflow: hidden;
            align-items: center;
            justify-content: center;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1));
            z-index: 1;
            pointer-events: none;
        }

        .hero-slideshow {
            position: absolute;
            top: 0;
            left: 0;
            width: 300%;
            height: 100%;
            display: flex;
            animation: slideLeft 15s infinite;
        }

        .hero-slide {
            width: 33.333%;
            height: 100%;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .hero-slide:nth-child(1) {
            background-image: url('index_files/header-bg4.png');
        }

        .hero-slide:nth-child(2) {
            background-image: url('index_files/header-bg.png');
        }

        .hero-slide:nth-child(3) {
            background-image: url('index_files/header-bg3.png');
        }

        @keyframes slideLeft {
            0%, 30% {
                transform: translateX(0);
            }
            33.33%, 63.33% {
                transform: translateX(-33.333%);
            }
            66.66%, 96.66% {
                transform: translateX(-66.666%);
            }
            100% {
                transform: translateX(0);
            }
        }
   

        .hero-content {
            text-align: center;
            color: white;
            max-width: 800px;
            padding: 0 2rem;
            animation: fadeIn 1s ease-in;
            position: relative;
            z-index: 10;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero p {
            font-size: 1.3rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .hero-enquire-btn {
            display: inline-block;
            margin-top: 1.5rem;
            background: #1a4d2e;
            color: #ffffff;
            padding: 0.9rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            box-shadow: 0 3px 8px rgba(0,0,0,0.3);
            transition: background 0.3s, transform 0.3s;
            position: relative;
            z-index: 10;
            cursor: pointer;
        }

        .hero-enquire-btn:hover {
            background: #145023;
            transform: translateY(-2px);
        }

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

        .tagline {
            font-size: 2.5rem;
            color: #1a4d2e;
            text-align: center;
            margin-bottom: 3rem;
            font-weight: bold;
        }

        .intro-section {
            background: #f8f9fa;
            padding: 2.5rem;
            border-radius: 10px;
            margin-bottom: 3rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .intro-section p {
            font-size: 1.1rem;
            color: #555;
            line-height: 1.8;
            margin-bottom: 1rem;
        }

        .intro-section .highlight {
            color: #1a4d2e;
            font-weight: 600;
        }

        .features {
            margin-bottom: 3rem;
        }

        .features h2 {
            color: #1a4d2e;
            margin-bottom: 2rem;
            font-size: 1.8rem;
            text-align: center;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            margin: 0 -2rem;
            gap: 0;
        }

        .feature-section {
            position: relative;
            min-height: 400px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            padding: 3rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .feature-section:hover {
            transform: scale(1.02);
        }

        .feature-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5));
        }

        .feature-content {
            position: relative;
            z-index: 1;
            text-align: center;
            color: white;
            padding: 0 1rem;
        }

        .feature-content h3 {
            font-size: 1.4rem;
            margin-bottom: 0.8rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
        }

        .feature-content p {
            font-size: 0.95rem;
            line-height: 1.6;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
        }

        .news {
            background: #f8f9fa;
            padding: 3rem 2.5rem;
            border-radius: 10px;
            margin-bottom: 3rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .news h2 {
            color: #1a4d2e;
            margin-bottom: 2rem;
            font-size: 1.8rem;
            text-align: center;
        }

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

        .news-item {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .news-item h3 {
            color: #1a4d2e;
            font-size: 1.2rem;
            margin: 0;
        }

        .news-item p {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .news-item a {
            color: #1a4d2e;
            font-weight: 600;
            text-decoration: none;
            margin-top: 0.25rem;
        }

        .news-item a:hover {
            text-decoration: underline;
        }

        .accreditations {
            background: #f8f9fa;
            padding: 3rem 2.5rem;
            border-radius: 10px;
            margin-bottom: 3rem;
            text-align: center;
        }

        .accreditations h2 {
            color: #1a4d2e;
            margin-bottom: 2rem;
            font-size: 1.8rem;
        }

        .accreditation-logos {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
        }

        .accreditation-logo {
            width: 300px;
            height: 300px;
            border-radius: 8px;
            background: #e0ece4;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .accreditation-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: grayscale(100%);
        }

        .triumphs {
            background: linear-gradient(135deg, #1a4d2e, #071710);
            color: #ffffff;
            padding: 3rem 2.5rem;
            margin: 4rem -2rem 3rem;
        }

        .triumphs h2 {
            font-size: 2rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .triumphs-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 2rem;
            align-items: center;
        }

        .triumphs-image-placeholder {
            height: 300px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.85);
            font-weight: 600;
            text-align: center;
        }

        .triumphs-text {
            font-size: 1.05rem;
            line-height: 1.8;
        }

        .triumphs-text p + p {
            margin-top: 1rem;
        }

        .closing-statement {
            background: #1a4d2e;
            color: white;
            padding: 3rem 2.5rem;
            border-radius: 10px;
            text-align: center;
            margin-bottom: 3rem;
        }

        .closing-statement p {
            font-size: 1.2rem;
            line-height: 1.8;
            max-width: 900px;
            margin: 0 auto;
        }

        .cta-button,
        .contact-submit {
            display: inline-block;
            background: #ff6b35;
            color: white;
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 2rem;
            transition: background 0.3s, transform 0.3s;
        }

        .cta-button:hover,
        .contact-submit:hover {
            background: #e85a2a;
            transform: scale(1.05);
        }

        .contact-form {
            margin-top: 2.5rem;
            text-align: left;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .contact-form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .contact-form-field {
            display: flex;
            flex-direction: column;
        }

        .contact-form-field label {
            font-weight: 600;
            margin-bottom: 0.4rem;
        }

        .contact-form-field input,
        .contact-form-field textarea {
            padding: 0.7rem 0.9rem;
            border-radius: 6px;
            border: none;
            font-size: 1rem;
        }

        .error-message {
            color: #ffb3b3;
            font-size: 0.85rem;
            margin-top: 0.2rem;
            min-height: 1rem;
        }

        .footer {
            background: #1a4d2e;
            color: white;
            padding: 2.5rem 2rem;
        }

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

        .footer-column h3 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 0.4rem;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            font-size: 0.95rem;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .footer-contact p {
            margin-bottom: 0.3rem;
            font-size: 0.95rem;
        }

        .footer-contact strong {
            display: block;
            margin-bottom: 0.4rem;
        }

        .footer-bottom p {
            margin-bottom: 0.3rem;
            font-size: 0.9rem;
        }

        .social-media {
            margin-top: 1rem;
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .social-media a {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
            text-decoration: none;
            font-size: 0.95rem;
            transition: opacity 0.3s;
        }

        .social-media a:hover {
            opacity: 0.8;
        }

        .social-icon {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }

        /* Chatbot Styles */
        .chatbot-container {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1000;
            display: none;
        }

        .chatbot-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #1a4d2e;
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .chatbot-button:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0,0,0,0.4);
        }

        .chatbot-window {
            position: absolute;
            bottom: 80px;
            left: 0;
            width: 350px;
            height: 500px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.2);
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .chatbot-window.open {
            display: flex;
        }

        .chatbot-header {
            background: #1a4d2e;
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chatbot-header h3 {
            margin: 0;
            font-size: 1.1rem;
        }

        .chatbot-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chatbot-messages {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .chatbot-message {
            padding: 0.8rem 1rem;
            border-radius: 12px;
            max-width: 80%;
            word-wrap: break-word;
        }

        .chatbot-message.bot {
            background: #e8f5e9;
            align-self: flex-start;
            color: #1a4d2e;
        }

        .chatbot-message.user {
            background: #1a4d2e;
            color: white;
            align-self: flex-end;
        }

        .chatbot-input-container {
            padding: 1rem;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 0.5rem;
        }

        .chatbot-input {
            flex: 1;
            padding: 0.7rem;
            border: 1px solid #ddd;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .chatbot-send {
            padding: 0.7rem 1.2rem;
            background: #1a4d2e;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
        }

        .chatbot-send:hover {
            background: #145023;
        }

        @media (min-width: 769px) {
            .chatbot-container {
                display: block;
            }
        }

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

        @media (max-width: 1024px) {
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .feature-content h3 {
                font-size: 1.2rem;
            }

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

        @media (max-width: 768px) {
            .courses-mega {
                display: none !important;
            }

            .hero {
                height: 600px;
            }

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

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

            .tagline {
                font-size: 1.8rem;
            }

            nav {
                margin-left: 0;
                padding-right: 0;
                position: relative;
            }

            nav ul {
                flex-direction: column;
                gap: 1rem;
                display: none;
                background: #1a4d2e;
                padding: 1rem 1.5rem;
                border-radius: 0 0 12px 12px;
                box-shadow: 0 4px 10px rgba(0,0,0,0.3);
                position: absolute;
                top: 100%;
                right: 0;
            }

            .nav-container {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 0.5rem;
                padding: 0 0.5rem;
            }

            .menu-toggle {
                display: inline-block;
                margin-right: 0.5rem;
            }

            nav.open ul {
                display: flex;
            }

            .logo-container {
                position: static;
                align-items: center;
                justify-content: flex-start;
                left: auto;
                top: auto;
                margin-bottom: 0;
                padding-left: 0.5rem;
            }

            .logo {
                width: 140px;
                height: 140px;
            }

            .features-grid {
                grid-template-columns: 1fr;
                margin: 0 -2rem;
            }

            .feature-section {
                min-height: 250px;
                padding: 3rem 1.5rem;
            }

            .feature-content h3 {
                font-size: 1.5rem;
            }

            .feature-content p {
                font-size: 1rem;
            }
			.site-footer {
				display:none;
			}
        }
    