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

:root {
    --primary: #007840; /* Deep School Green */
    --primary-light: #e6f4ea;
    --accent-orange: #ff7043; /* Pallikoodam Playful Orange */
    --accent-yellow: #ffca28; /* Pallikoodam Playful Yellow */
    --accent-blue: #29b6f6; /* Pallikoodam Playful Blue */
    --accent-purple: #ab47bc; /* Pallikoodam Playful Purple */
    
    --grad-green: linear-gradient(135deg, #007840 0%, #2e7d32 100%);
    --grad-orange: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
    --grad-yellow: linear-gradient(135deg, #ffca28 0%, #ffa000 100%);
    --grad-blue: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    --grad-purple: linear-gradient(135deg, #ab47bc 0%, #7b1fa2 100%);
    --grad-pink: linear-gradient(135deg, #ec407a 0%, #c2185b 100%);

    --bg-light: #f9fbf9;
    --text-dark: #212121;
    --text-light: #757575;
    
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'Bubblegum Sans', cursive;
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --border-radius-lg: 30px;
    --border-radius-md: 18px;
    --border-radius-sm: 12px;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Global Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navigation */
.header-wrapper {
    background: white;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--grad-green);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    position: relative;
}

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

.marquee-container {
    width: 70%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-loop 25s linear infinite;
}

.marquee-track span {
    margin-right: 50px;
    font-family: var(--font-primary);
}

@keyframes marquee-loop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.quick-links a {
    margin-left: 20px;
    color: white;
    font-family: var(--font-primary);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-dark);
    padding: 8px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link i {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: translateY(-2px);
}

/* Slide Underline Hover Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--grad-orange);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius-sm);
    min-width: 230px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.dropdown-item i {
    font-size: 13px;
    color: var(--accent-orange);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 25px;
}

.cta-btn {
    font-family: var(--font-primary);
    background: var(--grad-orange);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.4);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.6);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    animation: kenburns 10s ease infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 55px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Playful Cards / Pallikoodam elements */
.gradient-card {
    border-radius: var(--border-radius-md);
    padding: 30px;
    color: white;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gradient-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gradient-card.green { background: var(--grad-green); }
.gradient-card.orange { background: var(--grad-orange); }
.gradient-card.yellow { background: var(--grad-yellow); color: var(--text-dark); }
.gradient-card.blue { background: var(--grad-blue); }
.gradient-card.purple { background: var(--grad-purple); }

/* Auckland College Horizontal Image Slider */
.sliding-tracks-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.track-container {
    display: flex;
    gap: 20px;
    width: 200%;
    margin-bottom: 20px;
}

.track-left {
    animation: slide-left 40s linear infinite;
}

.track-right {
    animation: slide-right 40s linear infinite;
}

.track-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

@keyframes slide-left {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes slide-right {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Greenhill 3-Column Scroll Section */
.greenhill-section {
    padding: 100px 0;
    background: #fdfdfd;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
}

.rotating-badge-side {
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-svg {
    width: 180px;
    height: 180px;
    animation: rotate-badge 15s linear infinite;
}

@keyframes rotate-badge {
    to { transform: rotate(360deg); }
}

.badge-text-title {
    font-size: 32px;
    margin-top: 25px;
    color: var(--primary);
}

.columns-scroll-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: 500px;
}

.scroll-column {
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none; /* Hide for Firefox */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 50px;
}

.scroll-column::-webkit-scrollbar {
    display: none; /* Hide for Chrome/Safari */
}

.scroll-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 25px;
    border: 2px solid #f0f0f0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.scroll-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.scroll-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

.scroll-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Footer Section */
footer {
    background: #111;
    color: #ccc;
    padding: 80px 0 30px;
}

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

.footer-widget h5 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Hamburger menu toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .greenhill-section {
        grid-template-columns: 1fr;
    }
    
    .rotating-badge-side {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
    
    .columns-scroll-container {
        height: auto;
        grid-template-columns: 1fr;
    }
    
    .scroll-column {
        height: auto;
        overflow-y: visible;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-hover);
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
