/* --- STYLES FOR INTERESTS PAGE --- */

/* Section 1: Cover Photo */
.interests-cover {
    /* CORRECTED: This makes the height exactly 50% of the browser window's height */
    height: 45vh;
    width:auto; 
    background-image: url('media/interests/cover (cropped).jpg'); /* Cover image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Reduces the space between the cover image and the title below it */
.interests-cover + .content-section {
    padding-top: 10px; /* The default is 80px. Adjust this value as needed. */
}

/* Section 2: Main Text Content Layout */
.interests-container {
    max-width: 80%; /* Leaves 10% margin on each side */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

/* 1. Adds more space between the text and button sections */
.interests-container {
    padding-bottom: 1px; /* Adjust this value to increase/decrease the gap */
}

/* 2. Centers the "Explore More" heading */
.button-group h3 {
    font-size: 1.8rem;
    margin-bottom: 50px; /* This adds a nice gap below the title */
    color: var(--dark-color);
    text-align: center;
}

/* CORRECTED #2 & #3: New mega title style */
.interests-container .mega-title {
    font-size: 2.5 rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

/* All other titles are now centered */
.interests-container h1 {
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: center;
}
.interests-container h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: center;
}

.interests-container p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
}

.interests-container p strong {
    display: block;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1em;
    font-weight: 600;
}

/* Section 7: Animated Titles */
.animated-title a {
    color: var(--dark-color);
    text-decoration: none;
    display: inline; /* Changed from inline-block */
    position: relative;
    padding-bottom: 5px;
    transition: color 0.25s ease-out;
}
.animated-title a:hover {
    color: var(--button-default-blue);
}
.animated-title a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--button-default-blue);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out;
}
.animated-title a:hover::after {
    transform: scaleX(1);
}

/* Section 8: Button Section */
.button-group .btn {
    display: block;
    margin: 0 auto 15px auto;
    text-align: center;
    /* CORRECTED: Fixed width and new style */
    width: 380px; /* Approximately 10cm */
    max-width: 100%; /* Ensures it shrinks nicely on smaller screens */
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.button-group .btn:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Style for the active submenu item */
.submenu .active-submenu {
    color: #a8cfff; /* Light blue highlight */
}

/* --- RESPONSIVE STYLES FOR INTERESTS PAGE --- */
@media (max-width: 768px) {
    .interests-cover {
        /* CORRECTED: This sets the new background image specifically for mobile */
        background-image: url('media/interests/cover.jpg');
        height: auto; /* Let the aspect ratio control the height */
        aspect-ratio: 16 / 9; /* Sets the exact 16:9 ratio */
        background-attachment: scroll;
    }
    
    .interests-container {
        max-width: 90%;
    }

    .interests-container h1 {
        font-size: 1.6rem;
    }

    .interests-container h2 {
        font-size: 1.5rem;
    }
    .button-group h3 {
        font-size: 1.5rem;
        margin-bottom: 50px; /* This adds a nice gap below the title */
        color: var(--dark-color);
        text-align: center;
    }
}