/* Basic Reset & Variables */
:root {
    --color-primary: #1B4318;
    /* Dark Green */
    --color-accent: #9B8A2D;
    /* Gold/Mustard */
    --color-dark: #222222;
    /* Dark Footer */
    --color-text: #b0b0b0;
    /* Softer text for dark backgrounds */
    --color-body: #555555;
    /* Body text */
    --color-white: #ffffff;
    --color-light-bg: #f9f9f9;

    --font-heading: 'Abhaya Libre', serif;
    --font-body: 'Roboto', sans-serif;

    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-body);
    background-color: var(--color-white);
}

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

ul {
    list-style: none;
}

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

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

/* Header */
.main-header {
    background: var(--color-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-header);
    transition: padding 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
}

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

.logo a {
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--color-dark);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--color-accent);
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
}

/* Hero Section */
.page-title-section {
    background-color: #f4f4f4;
    /* Placeholder simple bg */
    padding: 80px 0;
    text-align: center;
    position: relative;
    /* Optional: Add a subtle texture/image here if desired */
}

.page-title-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #888;
}

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

.breadcrumbs .separator {
    margin: 0 5px;
}

/* Education Grid */
.education-section {
    padding: 80px 0;
}

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

.education-card {
    background: var(--color-white);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.card-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
}

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

/* Footer */
.main-footer {
    background-color: var(--color-dark);
    color: var(--color-text);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    /* First column slightly wider */
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

/* About Col */
.footer-logo {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col.about p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: #333;
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--color-accent);
}

/* Links Col */
.footer-col.links ul li {
    margin-bottom: 15px;
}

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

/* Contact Col */
.footer-col.contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-col.contact i {
    color: var(--color-accent);
    margin-right: 15px;
    margin-top: 5px;
}



/* Copyright */
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 0.9rem;
}

/* Floating Buttons */
.scroll-top-btn {
    position: fixed;
    z-index: 99;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}



.scroll-top-btn {
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-dark);
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
        /* Hide for now, requires JS to toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

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

    .page-title-section h1 {
        font-size: 2.5rem;
    }
}

/* Section Headings */
.section-heading {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* Dropdown functionality */
.main-nav .has-dropdown {
    position: relative;
    /* height: 100%; Removed to avoid layout issues */
    display: flex;
    /* Helps vertically center if needed */
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    /* Changed from default flex-direction row in parent */
    flex-direction: column !important;
    gap: 0 !important;
    padding: 10px 0;
    z-index: 1000;
}

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

.dropdown-menu li {
    width: 100%;
    margin: 0;
    /* Reset margins */
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    color: var(--color-dark);
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.3s, color 0.3s;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: #fcebeb;
    /* Light pinkish tint */
    color: var(--color-primary);
    padding-left: 25px;
}

/* Remove underline effect for dropdown items */
.dropdown-menu a::after {
    display: none;
}

/* --- Global Animations & Decorations --- */

/* Base Decoration Class */
.decoration {
    position: absolute;
    font-size: 3rem;
    z-index: 1;
    pointer-events: none;
}

/* Rocket Animation */
.rocket-dec {
    position: fixed;
    bottom: -100px;
    right: 20px;
    font-size: 3rem;
    z-index: 999;
    /* Ensure it's above most things but below header/modals */
    animation: flyRocket 15s linear infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes flyRocket {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(-45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 120%;
        transform: translateX(-50px) rotate(-45deg);
        opacity: 0;
    }
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Wandering Butterfly */
@keyframes wanderButterfly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(150px, -80px) rotate(15deg);
    }

    50% {
        transform: translate(300px, 20px) rotate(-10deg);
    }

    75% {
        transform: translate(100px, 100px) rotate(10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Wandering Bee */
@keyframes wanderBee {
    0% {
        transform: translate(0, 0) scaleX(1);
    }

    30% {
        transform: translate(200px, -150px) scaleX(1);
    }

    31% {
        transform: translate(200px, -150px) scaleX(-1);
    }

    60% {
        transform: translate(-50px, -200px) scaleX(-1);
    }

    61% {
        transform: translate(-50px, -200px) scaleX(1);
    }

    100% {
        transform: translate(0, 0) scaleX(1);
    }
}

/* Specific Items */
.dec-1 {
    /* Butterfly default */
    top: 20%;
    left: 10%;
    font-size: 3rem;
    opacity: 0.8;
    animation: wanderButterfly 25s linear infinite alternate;
}

.dec-2 {
    /* Flower large default */
    bottom: 15%;
    right: 5%;
    font-size: 5rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

.dec-3 {
    /* Flower mid default */
    top: 40%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

.dec-4 {
    /* Bee default */
    bottom: 30%;
    left: 8%;
    font-size: 2.5rem;
    opacity: 0.9;
    animation: wanderBee 18s ease-in-out infinite alternate;
}