.centered {
     text-align: center;
     margin-top: 2rem;
}

.btn-more {
     display: inline-block;
     padding: 0.75rem 1.5rem;
     background-color: #2c3e50;
     color: white;
     font-weight: 600;
     border-radius: 6px;
     text-decoration: none;
     transition: background-color 0.3s ease;
}

.btn-more:hover {
     background-color: #1abc9c;
}

.youtube-grid {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 2rem;
     margin: 2rem auto;
     max-width: 900px;

}

@media screen and (max-width: 768px) {
     .youtube-grid {
          grid-template-columns: 1fr;
     }
}

.youtube-card {
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
     overflow: hidden;
     transition: transform 0.3s ease;
     width: calc(50% - 1rem);
     text-align: center;
}

@media screen and (max-width: 768px) {
     .youtube-card {
          width: 100%;
     }
}

.youtube-card:hover {
     transform: translateY(-5px);
}

.thumbnail-wrapper {
     position: relative;
     width: 100%;
     aspect-ratio: 16 / 9;
     overflow: hidden;
}

.youtube-thumbnail {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
     transition: filter 0.3s ease;
}

.play-icon {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     font-size: 3rem;
     color: white;
     background: rgba(0, 0, 0, 0.5);
     border-radius: 50%;
     padding: 0.5rem 0.8rem;
     pointer-events: none;
}

.caption {
     padding: 1rem;
     font-size: 1rem;
     color: #333;
}

.youtube-gallery {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 2rem;
     margin-top: 2rem;
}

.youtube-row {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 2rem;
}

.youtube-item {
     flex: 0 0 300px;
     display: flex;
     flex-direction: column;
     align-items: center;
}

.youtube-item iframe {
     width: 100%;
     height: 170px;
     border-radius: 8px;
}

.youtube-item .caption {
     margin-top: 0.5rem;
     font-size: 0.95rem;
     color: #444;
     text-align: center;
}

.github-commits {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
}

.commit-card {
     background-color: #fff;
     border-left: 4px solid #2ea44f;
     padding: 1rem 1.5rem;
     border-radius: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.commit-card p {
     margin-bottom: 0.5rem;
     font-size: 1rem;
}

.commit-card small {
     color: #586069;
}

.commit-card a {
     display: inline-block;
     margin-top: 0.5rem;
     color: #0366d6;
     text-decoration: none;
}

.commit-card a:hover {
     text-decoration: underline;
}

/* General Resets and Base Styles */
* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

body {
     margin: 0;
     font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
     background-color: #f0f2f5;
     color: #1a1a1a;
     line-height: 1.6;
}

/* Navigation Bar */
.navbar {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 2rem;
     background-color: #13315C;
     color: white;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .logo img {
     height: 45px;
}

.navbar .nav-links {
     display: flex;
     gap: 2rem;
     list-style: none;
}

.navbar .nav-links a {
     color: white;
     text-decoration: none;
     font-weight: 600;
     transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
     color: #C1292E;
}

.hero p {
     font-size: 1.2rem;
     max-width: 800px;
}

/* Sections */
.section {
     padding: 4rem 2rem;
     max-width: 1200px;
     margin: 0 auto;
}

.section h2 {
     font-size: 2rem;
     margin-bottom: 1.5rem;
     border-left: 5px solid #C1292E;
     padding-left: 1rem;
}

.section p {
     font-size: 1rem;
     color: #333;
}

.button {
     display: inline-block;
     margin-top: 2rem;
     background-color: #13315C;
     color: white;
     padding: 0.75rem 1.5rem;
     border-radius: 5px;
     text-decoration: none;
     font-weight: 600;
     transition: background 0.3s ease;
}

.button:hover {
     background-color: #006400;
}

/* Carousel */
.carousel {
     display: flex;
     overflow-x: auto;
     scroll-snap-type: x mandatory;
     gap: 2rem;
     padding: 2rem 0;
}

.carousel-item {
     min-width: 300px;
     background: white;
     padding: 1rem;
     border-radius: 10px;
     scroll-snap-align: center;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     flex: 0 0 auto;
}

/* Gallery */
.gallery {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
     gap: 1.5rem;
     padding-top: 2rem;
}

.gallery-item {
     position: relative;
     overflow: hidden;
     border-radius: 12px;
     background: #fff;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
     display: flex;
     flex-direction: column;
     height: auto;
}

.gallery-item img {
     width: 100%;
     height: 200px;
     object-fit: cover;
     display: block;
}

.gallery-item .caption {
     padding: 0.75rem;
     font-size: 0.9rem;
     color: #333;
     text-align: center;
}

.gallery2 {
     display: grid;
     gap: 1.5rem;
     padding-top: 2rem;
}

.gallery-item2 {
     position: relative;
     overflow: hidden;
     border-radius: 12px;
     background: #fff;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
     display: flex;
     flex-direction: column;
     height: auto;
}

.gallery-item2 img {
     object-fit: cover;
     display: block;
}

.gallery-item2 .caption {
     font-weight: 600;
     padding: 0.75rem;
     font-size: 0.9rem;
     color: #333;
     text-align: center;
}


/* Footer */
.site-footer {
     background-color: #13315C;
     color: white;
     padding: 2rem 1rem;
     text-align: center;
     margin-top: 4rem;
     position: relative;
}

.footer-content {
     max-width: 1000px;
     margin: 0 auto;
}

.site-footer p {
     margin-bottom: 1rem;
     font-size: 0.95rem;
}

.social-links {
     display: flex;
     justify-content: center;
     gap: 1.5rem;
}

.social-links a {
     display: inline-block;
     transition: transform 0.3s ease;
}

.social-links a:hover {
     transform: scale(1.1);
}

.social-links img {
     width: 32px;
     height: 32px;
     background-color: white;
     border-radius: 50%;
     padding: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
     .navbar .nav-links {
          flex-direction: column;
          align-items: flex-start;
     }

     .hero h1 {
          font-size: 2rem;
     }

     .carousel {
          flex-direction: column;
     }
}

body {
     margin: 0;
     font-family: 'Segoe UI', sans-serif;
     background-color: #f9f9f9;
     color: #111;
}

.preview-section {
     padding: 3rem 2rem;
     text-align: center;
}

.preview-gallery {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 1rem;
     margin: 1rem 0;
}

.preview-gallery img {
     width: 200px;
     height: 150px;
     object-fit: cover;
     border-radius: 0.5rem;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.more-button {
     display: inline-block;
     margin-top: 1rem;
     padding: 0.75rem 1.5rem;
     background-color: #004b87;
     color: white;
     text-decoration: none;
     font-weight: 600;
     border-radius: 0.5rem;
     transition: background-color 0.3s;
}

.more-button:hover {
     background-color: #006fc7;
}

/* style.css */

body {
     margin: 0;
     font-family: 'Segoe UI', sans-serif;
     background-color: #f9f9f9;
     color: #333;
}

.hero.alt-hero {
     background: url('../images/other/hero.JPG') center/cover no-repeat;
     height: 100vh;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     color: white;
}

.hero-overlay {
     background-color: rgba(0, 0, 0, 0.6);
     padding: 3rem;
     border-radius: 16px;
}

.intro {
     padding: 4rem 2rem;
     display: flex;
     justify-content: center;
}

.intro-content {
     display: flex;
     max-width: 1000px;
     gap: 2rem;
     align-items: center;
     flex-wrap: nowrap;
     justify-content: space-between;
}

.intro-img {
     width: 300px;
     border-radius: 12px;
}

.section-cards {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 2rem;
     padding: 3rem 2rem;
     max-width: 1200px;
     margin: auto;
}

.card {
     background: white;
     padding: 1.5rem;
     border-radius: 12px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
     text-align: center;
     transition: transform 0.3s ease;
}

.card:hover {
     transform: translateY(-5px);
}

.card img {
     width: 100%;
     border-radius: 10px;
     margin-bottom: 1rem;
}

.card-btn {
     display: inline-block;
     margin-top: 1rem;
     padding: 0.75rem 1.5rem;
     background-color: #002f6c;
     /* Millfield Blue */
     color: white;
     border-radius: 8px;
     text-decoration: none;
     transition: background 0.3s ease;
}

.card-btn:hover {
     background-color: #01458b;
}

.fade-in {
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
     opacity: 1;
     transform: none;
}

@media (max-width: 768px) {
     .intro-content {
          flex-direction: column;
          text-align: center;
     }

     .intro-img {
          width: 80%;
     }
}