* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #FFFFFF;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.0);
    /* backdrop-filter: blur(10px); */
    transition: all 0.3s ease;
}

.nav-header.scrolled {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-header.scrolled .nav-logo {
    color: #333;
}

.nav-header.scrolled .nav-menu a {
    color: #333;
    text-shadow: none;
}

.nav-header.scrolled .hamburger span {
    background: #333;
    box-shadow: none;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-logo:hover {
    color: rgba(255,255,255,0.8);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255,255,255,0.8);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu */
.nav-menu.mobile {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 0 20px 0;
    transition: right 0.3s ease;
    display: flex;
    border-radius: 0 0 0 15px;
    box-shadow: -5px 5px 20px rgba(0,0,0,0.3);
}

.nav-menu.mobile.active {
    right: 0;
}

.nav-menu.mobile a {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.nav-menu.mobile a:last-child {
    border-bottom: none;
}

.nav-menu.mobile a:hover {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding-left: 35px;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

        /*
         * The container for the hero image.
         * We use position: relative to allow for the absolute positioning of the image and text.
         * The padding-bottom percentage (56.25%) is calculated from the desired aspect ratio:
         * (1080 / 1920) * 100% = 56.25%
         * This forces the container to maintain a 1920x1080 aspect ratio, scaling with the viewport width.
         */
        .hero-container {
            width: 100%;
            height: 0;
            padding-bottom: 56.25%;
            position: relative;
            overflow: hidden;
            background-color: #f0f0f0; /* Fallback background color */
        }

        /*
         * The image element inside the container.
         * Position: absolute allows it to fill the entire container.
         * Width and height are set to 100% of the container.
         * object-fit: cover ensures the image fills the space without distortion,
         * since the container's aspect ratio now matches the image's.
         */
        .hero-container img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* New style for the hero video */
#hero-video {
  position: absolute; /* Positions the video relative to the .hero-image container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Ensures the video covers the container without distortion */
  z-index: 1;         /* Places the video below the text (which has z-index: 2) */
}

.hero-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    padding-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: normal;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: none;
    padding-bottom: 0;
}

.hero-text p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-text hr {
    width: 30%;
    height: 1px;
    background: white;
    margin: 0.5rem auto;
    border: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Content Container */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: #222;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 0.0rem 0 0.0rem 0;
    color: #222;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.0rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: normal;
    margin: 0.5rem 0 0.0rem 0;
    color: #333333;
}

p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: #333333;
}

.lead {
    font-size: 1.3rem;
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    color: #7f7fff;
}

/* Book grid styling */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.book-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}


/* Updated book image styling to prevent cropping */
.book-image {
    width: 100%;
    height: auto; /* Changed from fixed 520px */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1024/1638; /* Maintains book aspect ratio */
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center;
}

.book-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.book-image a:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Alternative approach if aspect-ratio isn't supported */
@supports not (aspect-ratio: 1024/1638) {
    .book-image {
        height: 0;
        padding-bottom: 160%; /* 1638/1024 * 100% for book aspect ratio */
        position: relative;
    }
    
    .book-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .book-image a {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Responsive adjustments for books */
@media (max-width: 768px) {
    .book-image {
        aspect-ratio: 1024/1638;
    }
}

@media (max-width: 480px) {
    .book-image {
        aspect-ratio: 1024/1638;
    }
}

.book-content {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

.book-type {
    display: none;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.3;
}

.book-description {
    font-size: 1.0em;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.book-link:hover {
    color: #764ba2;
}

/* Guides grid styling */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.guide-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.guide-content {
    padding: 0.5rem;
}

.guide-type {
    font-size: 0.8rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.guide-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0rem;
    color: #333;
    line-height: 1.3;
}

.guide-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.guide-link:hover {
    color: #764ba2;
}

/* Journal grid styling */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.journal-item {
    text-align: left;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.journal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.journal-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.journal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.journal-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.journal-content {
    padding: 0.5rem;
}

.journal-type {
    font-size: 0.8rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.journal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.3;
}

.journal-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.journal-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

/* Single content images */
.content-image {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Content image container for more control */
.content-image-container {
    text-align: center;
    margin: 3rem 0;
}

.content-image-container img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image-container img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image caption styling */
.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Single content videos */
.content-video {
    width: 100%;
    max-width: 100%;
    margin: 3rem 0;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Content video container */
.content-video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 3rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Responsive video embed (16:9 aspect ratio) */
.content-video-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-video-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.content-video-embed iframe,
.content-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video caption styling */
.video-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Smaller media variants */
.content-image-small,
.content-video-small {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-image-large,
.content-video-large {
    max-width: 100%;
}

/* Full width media (spans container) - now default behavior */
.content-image-full,
.content-video-full {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Floating media for text wrap */
.content-image-left {
    float: left;
    margin: 0 2rem 2rem 0;
    max-width: 400px;
}

.content-image-right {
    float: right;
    margin: 0 0 2rem 2rem;
    max-width: 400px;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-image,
    .content-image-container img,
    .content-video,
    .content-video-container,
    .content-video-embed {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .content-image-left,
    .content-image-right {
        float: none;
        margin: 2rem 0;
        max-width: 100%;
        display: block;
    }
    
    .content-image-small,
    .content-video-small {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .content-image,
    .content-image-container img,
    .content-video,
    .content-video-container,
    .content-video-embed {
        margin-left: 0;
        margin-right: 0;
        border-radius: 5px;
    }
}

/* More buttons */
.more-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.more-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Clickable H1 links styling */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.section-footer h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 0;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.section-footer h1:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

/* If you want to use it as a direct link */
.section-footer a {
    text-decoration: none;
    color: inherit;
}

.section-footer a h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 0;
    color: #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.section-footer a:hover h1 {
    color: #764ba2;
    transform: translateY(-2px);
}

/* Alternative: H1 link class for use anywhere */
.h1-link {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 0;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.h1-link:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-footer h1,
    .section-footer a h1,
    .h1-link {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-footer h1,
    .section-footer a h1,
    .h1-link {
        font-size: 1.8rem;
    }
}

/* Footer */
footer {
    background: #000;
    color: white;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

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

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 1.0);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    /* padding-top: 2rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 1.0);
    font-size: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 1.0);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: rgba(255, 255, 255, 0.9);
}

.email-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-header {
        padding: 15px 20px;
    }

    .nav-menu:not(.mobile) {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .books-grid, .guides-grid, .journal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p, .lead {
        font-size: 1rem;
    }

   .hero-text {
        bottom: 10%;
        width: 90%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-text hr {
    width: 30%;
    height: 1px;
    background: white;
    margin: 0.5rem auto;
    border: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
}

@media (max-width: 480px) {
    .nav-header {
        padding: 15px 15px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .content {
        padding: 30px 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-text {
        bottom: 8%;
        width: 95%;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        padding-bottom: -.5rem;
    }

    .hero-text h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-text hr {
    width: 30%;
    height: 1px;
    background: white;
    margin: 0.5rem auto;
    border: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
}