/* ------------------------------
   GLOBAL STYLES
------------------------------ */

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #F7F7F7;
    color: #333;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #003366;
}

/* ------------------------------
   NAVBAR
------------------------------ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links li {
    display: inline-block;
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.cta {
    background: #FFCC00;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #003366 !important;
    font-weight: 600;
}

.intro {
	padding-left: 5%;
	padding-right: 5%;
	
}

/* ------------------------------
   HERO SECTION
------------------------------ */

.hero {
    background: url('images/banner.jpg') center/cover no-repeat;
    padding: 6rem 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: #FFCC00;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    color: #003366;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
}



/* ------------------------------
   SECTIONS
------------------------------ */

.page-header {
    text-align: center;
    padding: 3rem 1rem;
    background: #EAEAEA;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: nowrap; /* prevents wrapping on larger screens */
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
}

.profile-photo {
    flex: 0 0 auto; /* prevents flexbox from resizing the image */
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover; /* ensures image fills space without distortion */
}

.active-photo {
	width: 300px;
	border-radius: 10px;
	align-content: right;
}

@media (max-width: 900px) {
    .about-container {
        flex-wrap: wrap; /* stacks image above text on tablets/phones */
        justify-content: center;
        text-align: center;
    }

    .profile-photo {
        width: 80%;
        max-width: 300px;
        height: auto;
        margin-bottom: 1.5rem;
    }
}

.arts-sports-section {
    background: #ffffff;
    padding: 3rem 1rem;
}

.arts-sports-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* keeps side-by-side on larger screens */
    gap: 2rem;
    align-items: flex-start;
}

.arts-sports-text {
    flex: 1;
}

.arts-sports-photo {
    width: 350px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0; /* prevents image from shrinking */
    object-fit: cover;
}

/* Responsive layout for smaller screens */
@media (max-width: 900px) {
    .arts-sports-container {
        flex-direction: column;
        flex-wrap: wrap;
        text-align: center;
        align-items: center;
    }

    .arts-sports-photo {
        width: 80%;
        max-width: 350px;
        margin-bottom: 1.5rem;
    }
}

/* ------------------------------
   PLATFORM ITEMS
------------------------------ */

.platform-item {
    background: white;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ------------------------------------
   PLATFORM IMAGE + TEXT ALTERNATING
------------------------------------ */

.platform-item.alt-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
}

.platform-item.alt-layout:nth-child(even) {
    flex-direction: row-reverse; /* alternate image sides */
}

.platform-image img {
    width: 350px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.platform-content {
    flex: 1;
}

/* Mobile layout */
@media (max-width: 900px) {
    .platform-item.alt-layout {
        flex-direction: column !important; /* image above text */
        text-align: center;
    }

    .platform-image img {
        width: 80%;
        max-width: 350px;
        margin: 0 auto 1.5rem auto;
    }

    .platform-content {
        text-align: left;
    }
}


/* ------------------------------
   MEDIA GRID
------------------------------ */

.media-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.media-item img {
    width: 100%;
    border-radius: 8px;
}

/* ------------------------------
   BLOG CARDS
------------------------------ */

.blog-card {
    background: white;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ------------------------------
   FORMS
------------------------------ */

form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    background: #003366;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* ------------------------------
   ANIMATIONS
------------------------------ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-hover {
    transition: transform 0.3s ease;
}

.zoom-hover:hover {
    transform: scale(1.05);
}

.btn-primary,
.btn-secondary {
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
}

/* Parallax hero */
.hero {
    background-attachment: fixed;
}

/* Back to top button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #003366;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

