/* General styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    background: #E6E6FA;
    margin: 0;
    padding: 0;
    color: #333333; /* Darker font color for readability */
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    background: #E6E6FA;
}
img {
    display: block;
    margin: 0;
    padding: 0;
}

/* Navigation bar styles */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px;    
    background: #E6E6FA;
    padding: 10px 0;
}

nav a {
    color: black;
    font-weight: 200;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2em;
}

nav a.active {
    font-weight: 200;
    border-bottom: 2px solid #734F96; /* optional visual indicator */
}

nav a:hover {
    background: #FFE5B4;
    border-radius: 5px;
}

/* Social media icons styles */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    color: black;
    font-size: 1.5em;
    text-decoration: none;
}

.social-icons a:hover {
    background: #734F96;
    color: white;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
}

.flashing-message {
    background-color: #4B0082; /* deep purple */
    color: #FFFF00; /* bright yellow */
    font-weight: bold;
    font-size: 1.2em;
    padding: 8px 14px;
    margin-top: 6px;
    border-radius: 6px;
    animation: quick-double-blink 4s infinite;
}

a.flashing-link {
  text-decoration: none;
  display: block;
  text-align: right;
}

html, body {
  scroll-behavior: smooth;
}

@keyframes quick-double-blink {
    0%, 100% { opacity: 1; }
    5%, 15%  { opacity: 0.2; }  /* first blink */
    10%, 20% { opacity: 1; }    /* restore */
    25%, 35% { opacity: 0.2; }  /* second blink */
    30%, 40% { opacity: 1; }    /* restore */
    /* 40%–100% is wait period (no change) */
}

/* Slider styles */
.slider {
    width: 100%;
    height: 600px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Content section styles */
section {
    padding: 20px;
    background: #F5F5FD;
    color: black;       
    font-size: 1.1em; /* Increased font size */
    font-weight: 400;
    line-height: 1.6;  /* Improves readability */
    margin: 80px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* Slider Container with 1-inch margins */
.slider-container {
    margin: 0 96px 80px 96px; /* 1 inch margins */
    position: relative;
    text-align: center; /* optional */
}

.slider-message {
    position: absolute;
    bottom: 60px;
    left: 30px;
    color: #F5F5F5;
    background: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Lora', cursive;
    font-size: 2em;
    font-weight: bold;
    max-width: 70%;
    line-height: 1.3;
    text-align: left;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 3;
}

.slider-message.visible {
    opacity: 1;
}

.slider-message.visible {
  opacity: 1;
}

.slider {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 7/5;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Remove height: auto; */
}

/* Image covers full container */
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Next/Previous buttons centered at bottom */
.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.8em;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: #734F96;
    color: white;
}

.slider {
    max-width: 100%;
    height: auto;
    aspect-ratio: 7/5;
    margin: auto;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.slider img.fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transform: rotate(15deg); /* rotates 15° initially */
    transition: opacity 4s ease-in-out, transform 4s ease-in-out;
    z-index: 1;
}

.slider img.fade.active {
    opacity: 1;
    transform: rotate(0deg); /* ends flat */
    z-index: 2;
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 4;
}
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    z-index: 4;
    position: relative;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background-color: #734F96;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.8em;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: #734F96;
    color: white;
}
/* Download list styles inside section */
section ul {
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: none;
}

section ul li {
    margin-bottom: 8px;
}

section ul a {
    color: #1E90FF;
    text-decoration: underline;
}

section ul a:hover {
    text-decoration: none;
}

/* Footer styles */
footer {
    background: none;
    text-align: center;
    font-weight: 400;
    padding: 15px 0;
    font-size: 0.9em;
    color: black;
    margin: 80px;
}

.profile-wrapper {
    display: flex;
    align-items: bottom;
    gap: 30px;
}

.profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-text {
    flex: 1;
}


  header, nav, section {
    padding: 10px;
    text-align: center;
  }

  .header-right {
    align-items: center;
    padding-right: 0;
  }

  .slider-container {
    margin: 0 10px 40px 10px;
  }

  .slider-message {
    font-size: 1.5em;
    left: 10px;
    bottom: 20px;
    padding: 10px;
  }

  .slider img {
    height: auto;
    width: 100%;
  }

  nav a {
    display: block;
    padding: 10px;
  }

  .profile-image {
    display: block;
    margin: 20px auto;
    width: 150px;
    height: 150px;
  }
}

.logo {
  margin-left: 30px; /* adjust this value as needed */
}

.logo {
  height: 200px;
  object-fit: contain;
  margin-left: 30px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    section {
        margin: 10px;
        padding: 10px;
        font-size: 1em;
    }
    section ul {
        padding-left: 10px;
        font-size: 1rem;
    }
    section ul li {
        margin-bottom: 12px;
    }
    section ul a {
        word-break: break-all;
    }
    .slider {
        height: 220px;
        aspect-ratio: 1/1;
        border-radius: 8px;
    }
    .slider-container {
        margin: 0 10px 40px 10px;
    }
    .slider-message {
        font-size: 1.2em;
        padding: 10px;
        left: 10px;
        bottom: 20px;
        max-width: 95%;
    }
    .slider img {
        border-radius: 8px;
    }
    .slider-controls {
        gap: 10px;
        bottom: 4px;
    }
    .slider-controls button {
        font-size: 1.2em;
        padding: 6px 10px;
        border-radius: 5px;
    }
    .social-icons {
        gap: 6px;
    }
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 1.2em;
    }
    .header-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Add this line for vertical centering */
        padding-right: 0;
        margin-top: 10px;
    }
    .flashing-message {
        font-size: 1em;
        padding: 6px 10px;
    }
    .profile-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .profile-image {
        width: 120px;
        height: 120px;
    }
    footer {
        margin: 10px;
        padding: 10px 0;
        font-size: 0.95em;
    }
    body {
        font-size: 16px;
        margin: 0;
        padding: 0;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    nav a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
    }
    .flashing-message {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    logo,
        .social-icons,
        .flashing-message {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .social-icons {
        display: flex;
        justify-content: center !important;
        align-items: center;
        width: 100%;
        margin: 10px auto;
    }
    .flashing-message {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        margin: 10px auto;
    }
}
