/* General Layout */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    padding-bottom: 100px;
    overflow: auto;
}

.navbar-toggler-icon {
    display: block !important;  /* Ensures visibility */
    width: 30px !important;     
    height: 30px !important;
    background-color: #FF4500 !important; /* Forces site orange */
    
    /* Custom SVG to match Bootstrap’s default icon but in orange */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FF4500' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23FF4500' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}


/* Hero Section */
.hero-image {
    position: relative;
    background-image: url('/media/splash_final.webp?v=2');
    background-size: cover;
    background-position: center;
    height: 80vh;
    width: 100%;
}

/*About us images*/

/* Image Container */
.aboutus-image-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Circular Images */
.aboutus-circle-img {
    width: 100% !important; /* Ensures image takes full column width */
    max-width: 300px !important; /* Prevents it from growing too big */
    height: auto !important; /* Maintains aspect ratio */
    aspect-ratio: 1/1 !important; /* Ensures it's always a square */
    object-fit: cover !important; /* Crops to fit inside the square */
    border-radius: 50% !important; /* Makes it a perfect circle */
    display: block !important; /* Ensures proper layout */
}

/* Overlay Text */
.overlay-text,
.about-us-overlay-text {
    position: absolute;
    top: 80%;
    text-align: center;
    color: white;
}

.overlay-text {
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-us-overlay-text {
    right: 50px;
    transform: translateY(-50%);
    text-align: right;
}

.overlay-text h1,
.about-us-overlay-text h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 70px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.overlay-text p {
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 3px;
    display: inline-block;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: #ff4500 !important;
}

.navbar-brand img {
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: #ff4500 !important;
}

/* Footer */
.footer {
    background-color: #ff4500;
    color: white;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer-text {
    margin-left: 20px;
}

.footer-icons {
    display: flex;
    gap: 15px; /* Adds spacing between multiple icons */
}

.footer-icons img {
    width: 24px; /* Adjust icon size */
    height: 24px;
    transition: transform 0.3s ease-in-out;
}

.footer-icons img:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}

/* Card Container */
.card-container {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.card {
    flex: 1 1 30%;
    margin: 10px;
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}
}

/* Social Media Styling */
.social-tabs {
    display: flex;
    justify-content: space-between; /* Ensures full width is used */
    width: 100%;
}

.social-tab {
    flex: 1; /* Ensures each tab takes equal space */
    text-align: center;
    padding: 10px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
}

.social-tab.active {
    background-color: #ff4500;
    color: white;
}

.social-content {
    display: none;
    padding: 10px;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.social-content:not(.hidden) {
    display: block;
}


.card {
    flex: 1 1 30%;
    margin: 10px;
    display: flex;
    flex-direction: column;
    max-height: 700px; /* Adjust this value as needed */
    overflow: hidden; /* Prevent content from overflowing */
}

.card-body {
    flex-grow: 1;
    overflow-y: auto; /* Enables scrolling */
    padding: 10px;
}

.social-icon {
    width: 16px !important;   /* Force the width */
    height: 16px !important;  /* Force the height */
    vertical-align: middle;
    display: inline-block;  /* Ensure it behaves properly */
}


.social-join-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    margin-top: 10px; /* Add a little spacing from content */
}

.social-join-btn {
    display: flex;
    align-items: center; /* Align text and icon */
    gap: 6px; /* Space between icon and text */
    background-color: transparent;
    border: 1px solid #ff4500; /* Match your site’s theme */
    color: #ff4500;
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-join-btn:hover {
    background-color: #ff4500;
    color: white;
}





/* News Box */
.news-item {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-item h5 {
    margin: 0 0 5px;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 14px;
    font-weight: bold;
    color: #777;
    margin-bottom: 5px;
    display: block;
}

/* PixelFed Grid */
.pixelfed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 400px;
}

.pixelfed-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pixelfed-thumbnail {
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* Center the button */
.social-join-container {
    text-align: center;
    margin-top: 10px;
}

/* Minimalist button design */
.social-join-btn {
    background: none;
    border: 2px solid #ff4500; /* Orange border */
    color: #ff4500;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px; /* Rounded button */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: all 0.3s ease-in-out;
}

/* Hover effect */
.social-join-btn:hover {
    background-color: #ff4500;
    color: white;
}

/* Icon size */
.social-join-btn i {
    font-size: 1.2em;
}





/* Media Queries for Mobile View */
@media (max-width: 768px) {
    .overlay-text h1,
    .about-us-overlay-text h1 {
        font-size: 40px;
        letter-spacing: 0px;
    }

    .overlay-text p {
        font-size: 14px;
    }

    .card-container {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }

    .navbar-collapse {
        flex-grow: 0;
    }

    .navbar-brand span {
        display: none;
    }

    .about-us-overlay-text {
        right: 10px;
    }

	.aboutus-image-container {
        flex-direction: row !important; /* Prevent vertical stacking */
        justify-content: center !important;
        align-items: center !important;
    }

    .aboutus-circle-img {
        width: 45% !important; /* Ensure images fit side by side */
        max-width: 180px !important; /* Adjust for smaller screens */
        height: auto !important;
        aspect-ratio: 1/1 !important; /* Keep a perfect square */
        object-fit: cover !important;
        border-radius: 50% !important; /* Force circular shape */
        display: block !important;
    }


/*Bluesky integration*/

	.bsky-embed .post-content {
		max-height: 100px; /* Adjust based on desired preview length */
		overflow: hidden;
		position: relative;
	}

	.bsky-embed .post-content.expanded {
		max-height: none;
	}

	.bsky-embed .read-more {
		display: block;
		color: #ff4500; /* Match your site's color scheme */
		cursor: pointer;
		text-align: right;
		margin-top: 5px;
	}
	/*Pixelfed*/
	
	.grid-gallery a {
		display: block !important;
		width: 100% !important;
	}
	
	.grid-gallery img {
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: 100% !important;
		aspect-ratio: unset !important; /* Disable aspect-ratio */
		object-fit: contain !important; /* Prevent cropping */
	}
	
	#pixelfed-gallery {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		grid-template-rows: repeat(4, auto) !important;
		gap: 10px !important;
		width: 100% !important;
		max-width: 500px !important;
		margin: auto !important;
	}
	
}	