body {
    margin: 0;
    padding: 0;
    font-family: Times New Roman, serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    
}

/* --- HEADER WRAPPER --- */

.header-wrapper {
    
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1000;
    
}

.site-header {
    background: white;
    height: 100px;
    padding: 8px 40px;
    overflow: visible;
    border-bottom: 2.5px solid #002060; /* clean logo's blue border */
    margin-bottom: 40px;
    transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (min-width: 901px) {
    .header-wrapper.shrink .site-header {
        height: 60px;
        padding: 4px 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-wrapper.shrink .header-top {
        justify-content: flex-end;
        gap: 20px;
    }

    .header-wrapper.shrink .logo {
        width: 140px;
        height: auto;
        flex-shrink: 1;
    }

    .header-wrapper.shrink .nav-menu {
        gap: 14px;
        font-size: 17px;
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
    }

    .header-wrapper.shrink .nav-item {
        padding: 4px 6px;
        flex-shrink: 1;
        white-space: nowrap;
    }
}


/* --- TOP ROW: LOGO + NAVIGATION --- */
.header-top {
    display: flex;
    align-items: center;          /* vertically align logo + nav */
	justify-content: flex-end;
    gap: 40px
}

/* --- LOGO --- */
.logo {
    width: 280px;                 /* adjust as needed */
    height: 80px;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
	margin-top: 12px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;          /* ensures logo stays inside box */
    align-self: flex-start;
}
 
/* Softer wobble for the logo */
@keyframes logo-wobble {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(1.5deg); }
    50%  { transform: rotate(-1.5deg); }
    75%  { transform: rotate(1deg); }
    100% { transform: rotate(0deg); }
}

/* Apply wobble on hover */
.logo:hover {
    animation: logo-wobble 0.45s ease-in-out 1;
    transform-origin: center bottom;
}


/* --- NAVIGATION MENU (aligned with logo) --- */
.nav-menu {
    display: flex;
    gap: 30px;
    font-size: 20px;
    font-weight: 500;
    margin-top: -6px;
}

.nav-item {
    position: relative;
    cursor: pointer;
    color: black;
    text-decoration: none;
    padding: 8px 9px;
    border-radius: 4px;
    user-select: none;
    display: inline-block;
}

.nav-item::after {
    content: "🔎";               
    font-size: 0.75em;
    position: absolute;
    bottom: 1px;
    right: -5px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu a.nav-item {
    color: inherit;
    text-decoration: none; 
}

.nav-menu a.nav-item:visited,
.nav-menu a.nav-item:hover,
.nav-menu a.nav-item:active {

    color: inherit !important;
    text-decoration: none !important;
    
}

nav.nav-menu a.nav-item {

    color: black !important;
    text-decoration: none !important;
    
}

@keyframes wobble {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(3deg); }
    50%  { transform: rotate(-3deg);}
    75%  { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

.nav-item:visited {           
    color: black;            
}

.nav-item:hover {
    animation: wobble 0.35s ease-in-out;
}

/* Show icon on hover */
.nav-item:hover::after {
    opacity: 1;
}

/* --- HEADER AND NAVIGATION IN HALF SCREEN MODE --- */

@media (max-width: 900px) {

    /* Shrink header height */
    .site-header {
        height: 60px;
        padding: 4px 16px;
    }

    /* Keep logo + nav on ONE line */
    .header-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;  /* distribute space intelligently */
        gap: 16px;
        width: 100%;
    }

    /* Shrink the logo */
    .logo {
        width: 140px;
        height: auto;
        flex-shrink: 1;   /* allow shrinking */
    }

    /* Compress the navigation bar */
    .nav-menu {
        display: flex;
        flex-wrap: nowrap;   /* keep on one line */
        gap: 10px;           /* smaller spacing */
        font-size: 14px;     /* smaller text */
        min-width: 0;        /* prevent overflow */
        overflow: hidden;    /* avoid micro-overflow */
    }

    /* Allow nav items to shrink */
    .nav-item {
        padding: 3px 5px;
        flex-shrink: 1;      /* allow shrinking */
        white-space: nowrap; /* keep each item on one line */
    }
}

/* --- MAIN CONTENT AREA --- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-size: 18px;
}

.site-header .nav-menu {
    gap: 40px;
    font-size: 20px;
    transition: gap 0.3s ease, font-size 0.3s ease;
    }

.dropdown-panel {
    position: absolute;
    top: 100%; /* exactly below your header */
    left: 0; /* align with nav menu */
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 2000;
}

.dropdown-panel a {
    padding: 12px 20px;
    text-decoration: none;
    color: black;
    font-size: 17px;
    display: block;
}

.dropdown-panel a:hover {
    background: #f0f0f0;
}

.tutoring-item {

    position: relative;
    
}

.solution-toggle {
    cursor: pointer;
    font-size: 1.1rem;
    margin: 20px 0;
    text-align: center;
    color: #444;
    transition: color 0.2s ease;
}

.solution-toggle:hover {
    color: #000;
}

/* Smooth slide animation for solution section */
#story-solution {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

/* When open, allow full height */
#story-solution.open {
    max-height: 2000px; /* large enough to fit any solution */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* ===========================
   HOME PAGE STYLING
   =========================== */

:root {
    --primary-orange: #F28C28;
    --text-black: #000000;
}

/* Main title */
.home-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    text-align: center;
}

/* Title image (Welcome PNG) */
.title-image {
    width: 60%;        /* adjust this value to taste */
    max-width: 500px;  /* prevents it from getting too large on big screens */
    height: auto;
    display: block;
    margin: 0 auto;    /* centers the image */
}

/* Intro paragraph with log's blue accent bar */
.intro-text {
    font-size: 1.15rem;
    border-left: 4px solid #002060; /* logo's blue */
    padding-left: 12px;
    margin-bottom: 1.5rem;

}

/* Section headings */
.section-heading {
    color: var(--text-black);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.8rem; /* slightly larger for clarity */
}

.heading-image {
    width: 20%;        /* adjust this value to taste */
    max-width: 300px;  /* prevents it from getting too large on big screens */
    min-width: 190px;
    height: auto;
    display: block;
    margin-left: 0;    /* ensures left alignment */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .heading-image {
        width: 20%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .heading-image {
        width: 50%;
        max-width: 260px;
        min-width: 160px;
    }
}

/* About Page title image */
.about-heading-image {
    max-width: 400px;
    min-width: 210px;
    width: 40%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for About Page title */
@media (max-width: 900px) {
    .about-heading-image {
        width: 45%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .about-heading-image {
        width: 50%;
        max-width: 260px;
        min-width: 160px;
    }
}

/* The Approach headings */
.approach-heading {
    color: var(--text-black);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.8rem; /* slightly larger for clarity */
}

.approach-heading-image {
    width: 20%;        /* adjust this value to taste */
    max-width: 300px;  /* prevents it from getting too large on big screens */
    min-width: 190px;
    height: auto;
    display: block;
    margin-left: 0;    /* ensures left alignment */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .approach-heading-image {
        width: 20%;
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .approach-heading-image {
        width: 50%;
        max-width: 260px;
        min-width: 160px;
    }
}

/* Contact headings */
.contact-heading {
    color: var(--text-black);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.8rem; /* slightly larger for clarity */
}

.contact-heading-image {
    width: 40%;        /* adjust this value to taste */
    max-width: 400px;  /* prevents it from getting too large on big screens */
    min-width: 210px;
    height: auto;
    display: block;
    margin: 0 auto;   
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-heading-image {
        width: 10%;
        max-width: 180px;
    }
}

@media (max-width: 600px) {
    .contact-heading-image {
        width: 50%;
        max-width: 260px;
        min-width: 160px;
    }
}

/* ===========================
   TITLE INITIAL LETTER STYLING (RESTORED)
   =========================== */

.title-initial {
    color: #FFB300; /* warm yellow-orange */
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* clean black outline */
}

.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    font-family: Times New Roman, serif;
    background: #ffffff;
    color: #000000;

    border-top: 2.5px solid #002060; /* clean logo's blue border */
}

.footer-logo {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
    opacity: 0.9;
}


