:root {
    --primary: #091641;
    --secondary: #117DAC;
    --accent: #1DA1F2;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: url('https://assets.lgmods.co.uk/images/packages/sinneruk/package_SinnerPD_01.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* Grid Layouts */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.staff-grid, .command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.staff-card, .command-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.staff-img, .command-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.staff-info, .command-info {
    padding: 1.5rem;
    text-align: center;
}

.staff-info h3, .command-info h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Rules */
.rules-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rules-category {
    margin-bottom: 2rem;
}

.rules-category h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.rules-list {
    list-style-type: none;
}

.rules-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.rules-list li::before {
    content: '�';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Forms */
.application-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.service-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-body {
    padding: 1.5rem;
}

.service-body ul {
    list-style-type: none;
}

.service-body li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-body li::before {
    content: '�';
    color: var(--secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Service Page Specific Styles */
.service-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.service-tabs ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

.service-tabs li {
    margin: 0;
}

.service-tabs a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-tabs a:hover, 
.service-tabs a.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.service-section {
    padding: 4rem 0;
}

.service-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.divisions-list {
    list-style-type: none;
    margin-top: 1rem;
}

.divisions-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.openings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.opening-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.opening-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.requirements {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.command-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.command-img {
    height: 200px;
    width: 200px; 
    margin: 0 auto; 
    border-radius: 50%; 
    overflow: hidden; 
}

.command-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.command-info {
    padding: 1.5rem;
    text-align: center;
}

.command-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Command Structure Styles */
.command-level {
    margin-bottom: 3rem;
}

.command-level h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}

.command-level h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
}

.gold h3::after {
    background-color: gold;
}

.silver h3::after {
    background-color: silver;
}

.bronze h3::after {
    background-color: #cd7f32; /* Bronze color */
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.command-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.command-img {
    height: 200px;
    width: 200px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid;
}

.gold .command-img {
    border-color: gold;
}

.silver .command-img {
    border-color: silver;
}

.bronze .command-img {
    border-color: #cd7f32;
}

.command-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.command-info {
    padding: 1.5rem;
}

.command-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .command-img {
        height: 150px;
        width: 150px;
    }
}

.structure-level {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.structure-level h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-tabs ul {
        flex-direction: column;
    }
    
    .service-tabs a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

.about-department {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
    background-color: #f9f9f9; /* Or your preferred background */
}

.about-department .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-department-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-department-text {
    padding-right: 2rem;
}

/* Full-width Sections */
.full-width-section, .about-department {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.full-width-section .container, 
.about-department .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content, .about-department-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

/* Divisions */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.division-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.division-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.division-icon {
    font-size: 1.2rem;
    color: var(--secondary);
    width: 1.5em;
    text-align: center;
}

.division-name {
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #ddd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, 
    .about-department-content {
        grid-template-columns: 1fr;
    }
    
    .about-department-text {
        padding-right: 0;
        order: 2;
    }
    
    .about-department-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .image-gallery {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 2rem;
    }
    
    .gallery-image {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-tabs ul {
        flex-direction: column;
    }
    
    .service-tabs a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}