body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    overflow-y: auto;   /* Allows vertical scrolling */
}

.content {
    height: 100vh;
    overflow-y: auto;
}

/* Fixed Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: white;
    padding: 0px 0;
    z-index: 1000;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Umbrella Section */
.umbrella-container {
    margin-top: 120px; /* Increased space below the header */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Larger Umbrella Image - Fully Visible */
.umbrella {
    width: 700px; /* Adjusted for better visibility */
    height: auto;
    margin-top: 0px; /* Moves the umbrella down */
    margin-bottom: 0px; /* Space before subsidiaries */
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Subsidiary Heading */
.subsidiary-heading {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Grid Layout for Subsidiaries */
.subsidiary-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Updated from 4 to 6 columns */
    gap: 10px;
    max-width: 1200px; /* Wider container to fit more columns */
    margin: 0 auto;
    align-items: stretch;
}

.subsidiary-links a span {
    font-size: 18px; /* Larger text */
    font-weight: bold; /* Bold font */
    text-decoration: underline; /* Underline */
    display: block;
    white-space: nowrap; /* Ensures text stays on one line */
    margin-bottom: 5px;
    line-height: 1.2; /* Adjusts spacing for multi-line text */
}

/* General Button Styling */
.subsidiary-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    height: 60px; /* Forces buttons to match placeholder */
    min-height: 60px; /* Prevents shrinkage */
    transition: 0.3s;
    text-align: center;
    font-size: 14px;
}

/* Style Placeholders to Match Other Buttons */
.subsidiary-links a,
.subsidiary-links .placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    height: 60px; /* Increased to fit longer text */
    min-height: 60px; /* Prevents shrinking */
    max-height: 60px; /* Ensures uniformity */
    transition: 0.3s;
    text-align: center;
    font-size: 14px;
    color: white;
}

/* Unique Colors for Each Subsidiary */
.subsidiary-links .stepps { background: #6C3483; }   		/* Dark Purple - Education */
.subsidiary-links .pokepops { background: #D35400; } 		/* Dark Orange - Trading */
.subsidiary-links .planwise { background: #2E86C1; } 		/* Blue - Finance */

.subsidiary-links .care { background: #C0392B; }     		/* Red - Health */
.subsidiary-links .safe { background: #28B463; }     		/* Green - Storage */
.subsidiary-links .citerisq { background: #E67E22; } 		/* Orange - Compliance */

/* New Colors for Each Subsidiary - Additional 6 */
.subsidiary-links .ai-automation {background: #808080;}		/* #006B2F Dark Olive Green */
.subsidiary-links .workforce-training {background: #808080;}	/* #FFBF00 Amber/Deep Yellow */
.subsidiary-links .strategic-consulting {background: #808080;}	/* #8B0B2F Dark Red */

.subsidiary-links .legal-compliance {background: #808080;} 	/* #40E0D0 Turquoise */
.subsidiary-links .cyber-defense {background: #808080;} 	/* #4B0000 Dark Maroon */
.subsidiary-links .innovation-hub {background: #808080;} 	/* #B8860B Dark Goldenrod */

.subsidiary-links .citerisq {
    background: #E67E22; /* Orange */
    color: white;        /* Ensures text remains white */
    text-decoration: none; /* Prevents underline or default blue */
}

.subsidiary-links .citerisq:visited,
.subsidiary-links .citerisq:hover,
.subsidiary-links .citerisq:active {
    background: #E67E22; /* Prevent color shift on interaction */
    color: white;
    text-decoration: none;
}

a {
    text-decoration: none;
    color: inherit;
}


/* Placeholder Color */
.subsidiary-links .placeholder {
    background: #777777; /* Gray */
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    height: 60px; /* Match button height */
    min-height: 60px; /* Prevents shifting */
    font-size: 14px;
}

/* Hover Effect */
.subsidiary-links a:hover {
    filter: brightness(1.2);
}


/* Style for Company Name Inside Button */
/* Adjusting STEPPs and SAFE for single-line text */
.subsidiary-links a span {
    font-size: 18px; /* Larger text */
    font-weight: bold; /* Bold font */
    text-decoration: underline; /* Underline */
    display: block;
    white-space: nowrap; /* Ensures text stays on one line */
    margin-bottom: 5px;
}

/* ------------------------------------------------------------------------------------------------------------------ */

.shared-resources p {
    display: flex;
    flex-wrap: wrap; /* Allows resources to wrap on smaller screens */
    justify-content: center;
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
}

/* Placeholder */
.placeholder {
    background: #ccc;
    color: #666;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    height: 60px; /* Reduced height */
    font-size: 14px;
}

/* Fixed Footer */
footer {
    width: 100%;
    background: #333;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    text-align: center;
}

/* Shared Resources Flowchart */
.resource-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 90%;
}

.company-box {
    width: 30%;
    padding: 15px;
    border: 2px solid #0073e6;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
    font-size: 16px;
}

.company-box h3 {
    margin-bottom: 10px;
    color: #0073e6;
}

/* Shared Resources Under Umbrella */
.shared-resources {
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    margin-top: -10px;
}

/* Container for Umbrella and Floating Boxes */
.umbrella-container {
    position: relative;
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Umbrella Image */
.umbrella {
    width: 600px; /* Adjust for better visibility */
    height: auto;
    position: relative;
    z-index: 2; /* Ensure it's on top */
}

/* Resource Boxes Around the Umbrella */
.resource-box {
    position: absolute;
    width: 160px; /* Compact size */
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.resource-box strong {
    font-weight: bold;
    text-decoration: underline;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Unique Colors for Each Subsidiary Box */
.stepps { background: #6C3483; color: white; }   /* Dark Purple - Represents education & wisdom */
.pokepops { background: #D35400; color: white; } /* Dark Orange - Represents fun, energy & collectibles */
.planwise { background: #2E86C1; color: white; } /* Blue - Represents trust, security & finance */
.care { background: #C0392B; color: white; }     /* Red - Represents healthcare, urgency & wellness */
.safe { background: #28B463; color: white; }     /* Green - Represents storage, stability & growth */
.citerisq { background: #E67E22; color: white; } /* Orange - Represents cybersecurity, compliance & protection */

/* Positioning Boxes Closer to the Umbrella */
.planwise { top: 60px; left: 24%; } /* Minor adjustment */
.pokepops { top: 37%; left: 20%; } /* Centered */
.citerisq { bottom: 85px; left: 22%; } /* Slightly raised */

.safe { top: 60px; right: 24%; } /* Matched to PLANWise */
.care { top: 37%; right: 20%; } /* Matched to PokéPops */
.stepps { bottom: 85px; right: 22%; } /* Matched to CiteRisQ */

/* ------------------------------------------------------------------------------------------------------------------ */

/* New Resource Boxes - Additional 6 */
.ai-automation { background: #006B2F; } /* Dark Olive Green */
.workforce-training { background: #FFBF00; } /* Amber/Deep Yellow */
.strategic-consulting { background: #8B0B2F; } /* Dark Red */

.legal-compliance { background: #40E0D0; }  /* Turquoise */
.cyber-defense { background: #4B0000; } /* Dark Maroon */
.innovation-hub { background: #B8860B; } /* Dark Goldenrod */


/* Positioning New Boxes */
.ai-automation { top: 160px; left: 13%; }
.workforce-training { top: 32%; left: 8%; }
.strategic-consulting { bottom: 375px; left: 10%; }

.legal-compliance { top: 160px; right: 13%; }
.cyber-defense { top: 32%; right: 8%; }
.innovation-hub { bottom: 375px; right: 10%; }


/* Ensure uniform box styles */
.resource-box {
    position: absolute;
    width: 160px; /* Compact size */
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.resource-box strong {
    font-weight: bold;
    text-decoration: underline;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Connecting Arrows */
.arrow {
    position: absolute;
    width: 5%; /* Scales dynamically */
    height: 2px;
    background-color: black;
    z-index: 1;
}

.arrow::after {
    content: "";
    position: absolute;
    border: solid black;
    border-width: 5px 5px 0 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
}

/* Positioning Arrows */
.arrow-planwise-safe { top: 100px; left: 42%; transform: rotate(10deg); }
.arrow-planwise-safe::after { left: 50px; top: -5px; }

.arrow-safe-pokepops { top: 150px; left: 50%; transform: rotate(30deg); }
.arrow-safe-pokepops::after { left: 50px; top: -5px; }

.arrow-citerisq-all { bottom: 60px; left: 45%; transform: rotate(-20deg); }
.arrow-citerisq-all::after { left: 50px; top: -5px; }

.arrow-stepps-all { bottom: 90px; right: 45%; transform: rotate(-15deg); }
.arrow-stepps-all::after { left: 50px; top: -5px; }

.arrow-pokepops-planwise { top: 180px; left: 30%; transform: rotate(-30deg); }
.arrow-pokepops-planwise::after { left: 50px; top: -5px; }

.arrow-care-all { top: 210px; right: 35%; transform: rotate(20deg); }
.arrow-care-all::after { left: 50px; top: -5px; }

/* ------------------------------------------------------------------------------------------------------------------ */

/* Media */
@media (max-width: 900px) {
    .subsidiary-links {
        grid-template-columns: repeat(2, 1fr); /* Show 2 per row on smaller screens */
    }
}

@media (max-width: 600px) {
    .subsidiary-links {
        grid-template-columns: repeat(1, 1fr); /* Show 1 per row on very small screens */
    }
}

@media (max-width: 900px) {
    html, body {
        overflow: auto;
    }
}