/*
==============================
TABLE OF CONTENTS
==============================
1. COLOR PALETTE & VARIABLES
2. RESET & BASE STYLES
3. LAYOUT & CONTAINERS
4. BUTTONS & FORM ELEMENTS
5. UTILITY CLASSES
6. HEADER & NAVIGATION
7. HERO SECTION
8. ABOUT & CREDENTIALS SECTION
9. CONTENT CATEGORIES
10. EMAIL SIGNUP
11. TESTIMONIALS
12. FINAL CTA
13. FOOTER
14. SITE LOGO
15. PAGE BANNER
16. ABOUT SECTION
17. SPECIAL FORCES BACKGROUND
18. TRAINING PHILOSOPHY
19. CTA SECTION
20. ARTICLE STYLES
21. COMING SOON STYLES
22. TRAINING PROCESS SECTION
23. TRAINING PROGRAMS SECTION
24. TRAINING CATEGORIES
25. TESTIMONIALS SECTION
26. PRIVACY POLICY STYLES
27. WATERMARK STYLES
28. ARTICLE PREVIEW SECTION
29. CONTENT PILLARS SECTION
30. TRAINING PRODUCTS SECTION
31. TWO-COLUMN LAYOUT
32. RESPONSIVE STYLES
*/

/* ==============================
1. COLOR PALETTE & VARIABLES
============================== */
:root {
    --dark-navy: #1A2A3A;
    --tactical-green: #2A3E35;
    --steel-gray: #4A5259;
    --desert-tan: #C2B280;
    --off-white: #F5F5F5;
    --charcoal: #333333;
    --alert-red: #B22222;
    --muted-gold: #BFA46F;
}

/* ==============================
2. RESET & BASE STYLES
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--off-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--tactical-green);
    transition: color 0.3s;
}

a:hover {
    color: var(--desert-tan);
}

/* ==============================
3. LAYOUT & CONTAINERS
============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.section-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==============================
4. BUTTONS & FORM ELEMENTS
============================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--tactical-green);
    color: var(--off-white);
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--desert-tan);
    color: var(--dark-navy);
}

.btn-secondary {
    background-color: var(--desert-tan);
    color: var(--dark-navy);
}

.btn-secondary:hover {
    background-color: var(--muted-gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
}

/* ==============================
5. UTILITY CLASSES
============================== */
.text-center {
    text-align: center;
}

/* ==============================
6. HEADER & NAVIGATION
============================== */
header {
    background-color: var(--dark-navy);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--off-white);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--off-white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
    color: var(--desert-tan);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
    font-family: sans-serif; /* For hamburger icon compatibility */
}

/* ==============================
7. HERO SECTION
============================== */
.hero {
    background: linear-gradient(rgba(26, 42, 58, 0.8), rgba(26, 42, 58, 0.8)), url('/api/placeholder/1400/800') no-repeat center center;
    background-size: cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--off-white);
    padding-top: 80px; /* Account for fixed header */
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--off-white);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--desert-tan);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

/* ==============================
8. ABOUT & CREDENTIALS SECTION
============================== */
.credentials {
    background-color: var(--off-white);
}

.credentials-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.credentials-text {
    flex: 1;
}

.credentials-image {
    flex: 1;
    text-align: center;
}

.credentials-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ==============================
9. CONTENT CATEGORIES
============================== */
.categories {
    background-color: var(--steel-gray);
    color: var(--off-white);
}

.categories .section-title {
    color: var(--off-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card h3 {
    color: var(--desert-tan);
    margin-bottom: 15px;
}

.category-card p {
    font-size: 0.95rem;
}

/* ==============================
10. EMAIL SIGNUP
============================== */
.signup {
    background-color: var(--tactical-green);
    color: var(--off-white);
    text-align: center;
}

.signup .section-title {
    color: var(--off-white);
}

.signup-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    position: relative;
}

/* Form feedback overlay */
#form-feedback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 62, 53, 0.9);
    z-index: 10;
    border-radius: 8px;
    text-align: center;
}

/* Loading spinner */
#loading-spinner {
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--desert-tan);
    border-radius: 50%;
    border-top-color: var(--off-white);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================
11. TESTIMONIALS
============================== */
.testimonials {
    background-color: var(--off-white);
}

.testimonial-placeholder {
    background-color: var(--steel-gray);
    color: var(--off-white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ==============================
12. FINAL CTA
============================== */
.final-cta {
    background-color: var(--dark-navy);
    color: var(--off-white);
    padding: 80px 0;
    text-align: center;
}

.final-cta .section-title {
    color: var(--off-white);
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==============================
13. FOOTER
============================== */
footer {
    background-color: var(--charcoal);
    color: var(--off-white);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 20px 0;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--desert-tan);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--off-white);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==============================
14. SITE LOGO
============================== */
.site-logo {
    height: auto;
    width: 200px;
    max-width: 100%;
}

/* ==============================
15. PAGE BANNER
============================== */
.page-banner {
    background: linear-gradient(rgba(26, 42, 58, 0.8), rgba(26, 42, 58, 0.8)), url('/api/placeholder/1400/500') no-repeat center center;
    background-size: cover;
    padding: 120px 0 60px;
    color: var(--off-white);
    text-align: center;
    position: relative;
}

.page-banner h1 {
    color: var(--off-white);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-banner p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.page-watermark {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* Even smaller */
    opacity: 0.07; /* Much more subtle */
    z-index: 0;
    pointer-events: none;
    max-width: 80%;
    filter: grayscale(100%); /* Add a grayscale filter for even more subtlety */
}

/* ==============================
16. ABOUT SECTION
============================== */
.about-intro {
    background-color: var(--off-white);
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==============================
17. SPECIAL FORCES BACKGROUND
============================== */
.sf-background {
    background-color: var(--steel-gray);
    color: var(--off-white);
    padding: 80px 0;
}

.sf-background .section-title {
    color: var(--off-white);
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--desert-tan);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--desert-tan);
    border-radius: 50%;
    top: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -62px;
}

.timeline-item:nth-child(even)::after {
    left: -62px;
}

.timeline-content {
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

.timeline-date {
    color: var(--desert-tan);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-title {
    margin-bottom: 10px;
    color: var(--off-white);
}

/* ==============================
18. TRAINING PHILOSOPHY
============================== */
.philosophy {
    background-color: var(--off-white);
    padding: 80px 0;
}

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.philosophy-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.philosophy-card h3 {
    margin-bottom: 15px;
    color: var(--tactical-green);
}

/* ==============================
19. CTA SECTION
============================== */
.cta-section {
    background-color: var(--tactical-green);
    color: var(--off-white);
    padding: 80px 0;
    text-align: center;
}

.cta-section .section-title {
    color: var(--off-white);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==============================
20. ARTICLE STYLES
============================== */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.article-meta {
    color: var(--steel-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: 400px;
    background-color: var(--steel-gray);
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--dark-navy);
    font-size: 1.8rem;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--tactical-green);
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.premium-content-wall {
    background-color: var(--desert-tan);
    padding: 30px;
    border-radius: 8px;
    margin: 50px 0;
    text-align: center;
}

.premium-content-wall h3 {
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.premium-content-wall p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.premium-content-wall .form-group {
    margin-bottom: 20px;
}

.premium-content-wall .form-control {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
}

.premium-content-wall .small {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 15px;
}

.article-sidebar {
    background-color: var(--off-white);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid rgba(0,0,0,0.1);
}

.article-sidebar h3, .article-sidebar h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--desert-tan);
}

.resource-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.resource-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-item h5 {
    margin-bottom: 5px;
}

.resource-item p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--desert-tan);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.related-article-card:hover {
    transform: translateY(-5px);
}

.related-article-image {
    height: 150px;
    background-color: var(--steel-gray);
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-content {
    padding: 15px;
}

.related-article-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* ==============================
21. COMING SOON STYLES
============================== */
.coming-soon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 42, 58, 0.8), rgba(26, 42, 58, 0.8)), url('images/Background1.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 40px 0;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 42, 58, 0.8);
    z-index: 1;
}

.coming-soon-content {
    max-width: 800px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.logo-container {
    margin-bottom: 30px;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: var(--tactical-green);
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.coming-soon-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-navy);
}

.progress-container {
    height: 30px;
    background-color: #f1f1f1;
    border-radius: 15px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 75%;
    background-color: var(--tactical-green);
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
}

.feature-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 200px;
    background-color: rgba(194, 178, 128, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--tactical-green);
}

.launch-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 30px;
    color: var(--tactical-green);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: var(--dark-navy);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--tactical-green);
}

/* ==============================
22. TRAINING PROCESS SECTION
============================== */
.training-process {
    background-color: var(--off-white);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Add connecting line between process steps */
.process-steps:before {
    content: "";
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--desert-tan), transparent);
    z-index: 0;
}

.process-step {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(to bottom, white, var(--off-white));
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    border-top: 4px solid var(--tactical-green);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tactical-green), var(--dark-navy));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--dark-navy);
    position: relative;
    padding-bottom: 12px;
}

.process-step h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--desert-tan);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--steel-gray);
}

/* ==============================
23. TRAINING PROGRAMS SECTION
============================== */
.training-programs {
    background-color: var(--steel-gray);
    color: var(--off-white);
}

.training-programs .section-title,
.training-programs .section-subtitle {
    color: var(--off-white);
    position: relative;
    z-index: 1;
}

.program-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.program-tab {
    padding: 12px 24px;
    background-color: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    color: var(--off-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.program-tab.active,
.program-tab:hover {
    background-color: var(--desert-tan);
    color: var(--dark-navy);
}

.program-content {
    background-color: white;
    color: var(--charcoal);
    padding: 40px;
    border-radius: 8px;
    display: none;
    position: relative;
    z-index: 1;
}

.program-content.active {
    display: block;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.program-title-area {
    flex: 3;
}

.program-details {
    flex: 1;
    text-align: right;
}

.program-title {
    color: var(--dark-navy);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.program-subtitle {
    color: var(--steel-gray);
    font-size: 1.1rem;
}

.program-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--tactical-green);
    margin-bottom: 5px;
}

.program-level {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--desert-tan);
    color: var(--dark-navy);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.program-description {
    margin-bottom: 30px;
}

.program-features {
    background-color: var(--off-white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.program-features h4 {
    margin-bottom: 20px;
    color: var(--dark-navy);
}

.program-features .features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.program-features .features-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.program-features .features-list li:before {
    content: ""; /* Unicode checkmark */
    position: absolute;
    left: 0;
    color: var(--tactical-green);
    font-weight: bold;
}

.program-cta {
    text-align: center;
    margin-top: 30px;
}

/* Modal styles for manual preview */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.preview-section {
    margin-bottom: 30px;
    position: relative;
    border: 1px solid var(--off-white);
    padding: 25px;
    border-radius: 8px;
}

.preview-toc {
    list-style-type: none;
    padding: 0;
}

.preview-toc li {
    padding: 8px 0;
    border-bottom: 1px solid var(--off-white);
}

.preview-text {
    line-height: 1.7;
}

.preview-list {
    padding-left: 20px;
}

.preview-list li {
    margin-bottom: 15px;
}

.preview-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--alert-red);
    font-weight: bold;
    transform: rotate(-15deg);
    opacity: 0.7;
}

.preview-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==============================
24. TRAINING CATEGORIES
============================== */
.training-categories {
    background-color: var(--off-white);
    padding: 60px 0; /* Reduced padding to make section tighter */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Slightly reduced gap between cards */
    margin-top: 40px;
    justify-content: center; /* Center the grid items */
}

.category-card {
    background-color: white; /* Changed from transparent to white for better definition */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Added shadow for depth */
    overflow: hidden; /* Ensures the image stays within border radius */
    height: 100%; /* Full height for alignment */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-image {
    height: 120px; /* Slightly reduced from 150px */
    background-color: var(--off-white); /* Changed from steel-gray to off-white */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
}

.category-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0%); /* Ensure colors show properly */
    opacity: 1; /* Full opacity */
}

.category-content {
    padding: 25px;
    flex-grow: 1; /* This makes all cards the same height */
    display: flex;
    flex-direction: column;
}

/* For specific control when there are exactly 4 items */
@media (min-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For exactly 3 items in a row on medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* When the count is 4 (not divisible by 3), center the last item */
    .categories-grid .category-card:last-child:nth-child(4) {
        grid-column: 2;
    }
}

/* For exactly 2 items in a row on smaller screens */
@media (min-width: 576px) and (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-title {
    color: var(--dark-navy);
    margin-bottom: 12px;
    font-size: 1.3rem; /* Slightly smaller for tighter look */
}

.category-description {
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* Make all buttons align at the bottom */
.category-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ==============================
25. TESTIMONIALS SECTION
============================== */
.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--steel-gray);
    padding: 40px;
    border-radius: 8px;
    color: var(--off-white);
    text-align: center;
    position: relative;
}

.testimonial-container:before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgba(255,255,255,0.1);
    font-family: 'Georgia', serif;
}

.testimonial-quote {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--desert-tan);
    margin-bottom: 0;
}

.testimonial-role {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Testimonial slider styles */
.testimonial-slider {
    position: relative;
    margin: 0 auto;
}

.tns-outer {
    position: relative;
}

.tns-controls {
    text-align: center;
    margin-top: 30px;
}

.tns-controls button {
    background: transparent;
    border: none;
    color: var(--dark-navy);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 15px;
    transition: color 0.3s;
}

.tns-controls button:hover {
    color: var(--tactical-green);
}

.tns-nav {
    text-align: center;
    margin: 20px 0;
}

.tns-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.2);
    border: none;
    margin: 0 5px;
    cursor: pointer;
}

.tns-nav button.tns-nav-active {
    background-color: var(--tactical-green);
}

/* ==============================
26. PRIVACY POLICY STYLES
============================== */
.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.privacy-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: var(--dark-navy);
    border-bottom: 2px solid var(--desert-tan);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.privacy-section h3 {
    color: var(--tactical-green);
    margin-top: 25px;
    margin-bottom: 15px;
}

.privacy-section p {
    margin-bottom: 15px;
}

.privacy-section ul, .privacy-section ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.privacy-section li {
    margin-bottom: 10px;
}

.last-updated {
    font-style: italic;
    color: var(--steel-gray);
    margin-bottom: 30px;
}

.table-of-contents {
    background-color: var(--off-white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.table-of-contents ol {
    margin-left: 20px;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.contact-info {
    background-color: var(--off-white);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

/* ==============================
27. WATERMARK STYLES
============================== */
.watermark-container {
    position: relative;
}

.watermark-container::before {
    content: "";
    background-image: url('https://tier1tacticaltraining.com/images/sbs.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 350px auto;
    opacity: 0.08;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==============================
28. ARTICLE PREVIEW SECTION
============================== */
.article-previews {
    background-color: var(--off-white);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.article-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ==============================
29. CONTENT PILLARS SECTION
============================== */
.content-pillars {
    background-color: var(--desert-tan);
    color: var(--charcoal);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.pillar-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.pillar-tab {
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--dark-navy);
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pillar-tab.active, .pillar-tab:hover {
    background-color: var(--tactical-green);
    color: var(--off-white);
}

.pillar-content {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 40px;
    margin-top: 20px;
    display: none;
    position: relative;
    z-index: 2;
}

.pillar-content.active {
    display: block;
}

.pillar-content-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pillar-text {
    flex: 3;
}

.pillar-sidebar {
    flex: 2;
    background-color: var(--off-white);
    padding: 20px;
    border-radius: 8px;
}

/* ==============================
30. TRAINING PRODUCTS SECTION
============================== */
.training-products {
    background-color: var(--off-white);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    background-color: var(--steel-gray);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--desert-tan);
    color: var(--dark-navy);
    padding: 8px 15px;
    font-weight: 700;
    border-radius: 4px;
}

.product-content {
    padding: 25px;
}

.product-title {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.product-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ==============================
31. TWO-COLUMN LAYOUT
============================== */
.two-column {
    display: flex;
    align-items: center;
    gap: 60px;
}

.column-text {
    flex: 1;
}

.column-image {
    flex: 1;
}

.column-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--tactical-green);
    color: var(--off-white);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#back-to-top:hover {
    background-color: var(--dark-navy);
}

/* ==============================
32. RESPONSIVE STYLES
============================== */
@media (max-width: 992px) {
    .credentials-content,
    .about-content {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1,
    .page-banner h1 {
        font-size: 2.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 30px;
    }

    .program-header {
        flex-direction: column;
    }

    .program-details {
        text-align: left;
        margin-top: 15px;
    }

    .program-features .features-list {
        grid-template-columns: 1fr;
    }

    .pillar-content-flex {
        flex-direction: column;
    }

    .pillar-sidebar {
        width: 100%;
    }

    .two-column {
        flex-direction: column;
    }

    .article-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-navy);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 10px 0;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        min-height: 80vh;
    }

    .hero h1,
    .coming-soon-title {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .page-banner {
        padding: 120px 0 60px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }

    .article-image {
        height: 300px;
    }

    .coming-soon-content {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .feature-item {
        flex: 0 0 100%;
    }

    .process-steps {
        flex-direction: column;
    }

    .program-content {
        padding: 25px;
    }

    .process-step {
        width: 100%;
    }

    .pillar-tabs {
        flex-direction: column;
        align-items: center;
    }

    .pillar-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 10px;
    }

    .article-cards,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .pillar-content {
        padding: 25px;
    }

    .page-watermark {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .categories-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 1.7rem;
    }

    .page-banner h1 {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 15px;
    }

    .philosophy-cards {
        grid-template-columns: 1fr;
    }

    .program-tab {
        width: 100%;
    }

    .article-cards,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        max-width: 100%;
    }
}