:root {
    --primary-color: #accff7;    /* Light blue */
    --secondary-color: #ff9f6b;  /* Light orange */
    --accent-color: #ffd7c3;     /* Lighter orange */
    --text-color: #2c3e50;
    --background-color: #92c7f2; /* Medium blue background */
    --card-shadow: 0 8px 30px rgba(74, 144, 226, 0.12);
}

body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
}

/* Navigation styles */
.nav-menu {
    background: linear-gradient(135deg, #ff9f6b, #95d3ff);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 20px rgba(74, 144, 226, 0.2);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    max-width: 1200px;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 1.13rem;
    display: block;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-menu a.active {
    background: white;
    color: #5aa1f3;
}

/* Welcome section styles */
.welcome-section {
    background: linear-gradient(135deg, #ff9f6b, #ffd7c3);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem auto;
    box-shadow: 0 8px 30px rgba(255, 159, 107, 0.2);
}

/* Larger welcome text */
header h1 {
    font-size: 4rem;  /* Much larger font size */
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
}

header p {
    font-size: 2.5rem;  /* Larger subtitle */
    font-weight: 500;
    text-align: center;
    color: white;
}

/* Welcome text - updated size */
.welcome-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;  /* Reduced from 2.2rem */
    line-height: 1.6;
    text-align: center;
    color: white;
}

/* Main container - updated for even margins */
main {
    max-width: 1000px;  /* Slightly reduced max-width */
    width: 70%;        /* Reduced width for more even margins */
    margin: 0 auto;    /* Center the content */
    padding: 0;        /* Remove padding to ensure even margins */
}

/* Card styles */
.card {
    background: linear-gradient(135deg, #ff9f6b, #ffd7c3);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem auto;  /* Center cards */
    box-shadow: var(--card-shadow);
    color: white;
    width: 100%;      /* Take full width of container */
}

/* Image and text container */
.image-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    width: 100%;
}

/* Image styles - UPDATED */
.featured-image {
    max-width: 100%;  /* Updated to 50% */
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-menu {
        padding: 0.5rem;
    }
    
    .nav-menu ul {
        padding: 0 1rem;
        justify-content: flex-start;
    }

    main {
        width: 85%;   /* Slightly wider on mobile but still with margins */
        padding: 0;
    }
}

.featured-image-side {
    width: 40%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    margin: 0;  /* Remove any margin */
}

.text-beside-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.4rem;
    color: white;
    font-family: 'Playfair Display', serif;
}

.text-beside-image p {
    font-size: 0.9rem; /* Adjust font size */
    color: #333; /* Change color as needed */
    margin-top: 0.5rem; /* Space above the caption */
}

.pdf-button {
    display: inline-block;
    background: white;
    color: #ff9f6b;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    align-self: flex-start;  /* Align button to the left */
}

.pdf-button:active {
    transform: scale(0.95);  /* Slight shrink when clicked */
    background: linear-gradient(135deg, #ff8f55, #ffc7ab);  /* Slightly darker gradient when clicked */
    box-shadow: 0 0 15px rgba(255, 159, 107, 0.5);  /* Glow effect when clicked */
}

/* Hover effect */
.pdf-button:hover {
    transform: scale(1.05);  /* Slight grow on hover */
    box-shadow: 0 0 20px rgba(255, 159, 107, 0.4);  /* Subtle glow on hover */
}

/* Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Content text in cards */
.content {
    font-size: 1.4rem;  /* Smaller size for general content */
    line-height: 1.6;
    color: white;
}

.floating-image {
    position: fixed;
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
    animation: float 20s infinite linear;  /* Slower animation */
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(0, 80px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-40px, -40px) rotate(270deg) scale(1.1);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Add subtle glowing border to all square cards */
.square-card {
    background: linear-gradient(135deg, #ff9f6b, #ffd7c3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    width: 60%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Softer glowing border */
    border: 2px solid white;  /* Thinner border */
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),  /* Reduced white glow */
        0 0 20px rgba(255, 159, 107, 0.3);   /* Reduced orange glow */
    position: relative;
    animation: borderPulse 4s infinite;  /* Slower animation */
}

/* Right-aligned boxes - keep alignment */
.square-card.right {
    margin-left: auto;
    margin-right: 0;
    width: 55%;
}

/* Animation for the border glow effect - more subtle */
@keyframes borderPulse {
    0% {
        box-shadow: 
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 20px rgba(255, 159, 107, 0.3);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 0.3),  /* Softer white glow */
            0 0 30px rgba(255, 159, 107, 0.4);   /* Softer orange glow */
    }
    100% {
        box-shadow: 
            0 0 10px rgba(255, 255, 255, 0.2),
            0 0 20px rgba(255, 159, 107, 0.3);
    }
}

/* Container for box and button - keep spacing */
div[style*="display: flex"] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    justify-content: flex-end;
    padding-left: 5%;
}

/* Adjust spacing for left-aligned containers */
div[style*="display: flex"] .square-card.left {
    margin-right: auto;
    margin-left: 0;
    width: 55%;
}

/* Square card styling for mentor page */
.mentor-square-card {
    background: linear-gradient(135deg, #ff9f6b, #ffd7c3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    width: 55%;  /* Match width of other square cards */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;  /* Push to right side */
    margin-right: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 159, 107, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.center-text {
    text-align: center; /* Center the text */
}

.welcome-header {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.playfair-header {
    font-family: 'Playfair Display', serif;
}

/* Collage Area Styles */
.collage-area {
    margin: 2rem auto; /* Center the collage area */
    text-align: center; /* Center the title */
}

.collage-title {
    font-family: 'Inter', sans-serif; /* Use the same font as the navigation */
    font-size: 2rem; /* Adjust size as needed */
    color: #2c3e50; /* Change color as needed */
    margin-bottom: 1rem; /* Space below the title */
}

.collage-container {
    display: grid; /* Use grid layout for random arrangement */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns with larger minimum size */
    gap: 2rem; /* Increase space between images */
    justify-items: center; /* Center images in their grid cells */
}

.collage-image {
    width: 100%; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: add rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: add shadow */
    transition: transform 0.3s; /* Optional: add transition for hover effect */
    margin: 0.5rem; /* Add margin around each image for additional spacing */
}

.collage-image:hover {
    transform: scale(1.1); /* Slightly scale up on hover for a nicer effect */
}

/* New class to move images to the right */
.move-right {
    margin-left: 20px; /* Increased value to move the images further right */
}

.collage-container p {
    font-size: 0.9rem; /* Adjust font size */
    color: #333; /* Change color as needed */
    margin-top: 0.5rem; /* Space above the caption */
    text-align: center; /* Center the text */
}

.caption {
    color: white; /* Set caption color to white */
    margin: 0; /* Remove default margin */
    font-weight: bold; /* Keep the font bold */
}

.small-orange-box {
    background-color: #ff9f6b; /* Light orange */
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    color: white; /* Text color */
    font-weight: bold; /* Bold text */
}

.welcome-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.welcome-flex > div {
    flex: 1;
    padding: 1rem; /* Adjust padding as needed */
}

