/* Three-column welcome section styles */
.welcome-content-layout {
    display: grid !important;
    grid-template-columns: 1fr 2fr 1fr !important;
    gap: 1.2rem !important;
    align-items: stretch !important;
}
.welcome-message-box,
.call-to-action-box,
.center-calendar-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
}
.welcome-message-box {
    background: linear-gradient(135deg, #FF9933 0%, #FFA347 100%);
    border-radius: 12px;
    padding: 1.3rem 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.25);
    border: 2px solid #FF9933;
    color: white;
}
.call-to-action-box {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 12px;
    padding: 1.3rem 1.1rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    border: 2px solid #4CAF50;
    color: white;
}
.welcome-message-box h3,
.call-to-action-box h3 {
    font-size: 1.05rem !important;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.welcome-message-box p,
.call-to-action-box p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin: 0;
}
.welcome-message-box .author,
.call-to-action-box .author {
    margin-top: auto !important;
    padding-top: 0.6rem;
    font-weight: 500;
    font-style: italic;
    font-size: 0.82rem !important;
}
.center-calendar-content {
    text-align: center;
}
.calendar-placeholder {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex: 1;
    display: flex;
    flex-direction: column;
}
#calendar-image {
    width: 100%;
    height: auto;
    display: block;
    flex: 1;
    object-fit: contain;
}
.calendar-download-note {
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    background: #f9f9f9;
    margin: 0;
}
@media (max-width: 900px) {
    .welcome-content-layout {
        grid-template-columns: 1fr !important;
    }
}
/* Consistent Downloads & Links nav button height */
.downloads-nav-btn {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.6rem !important;
    max-width: 90px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    position: relative;
    z-index: 2;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    overflow: visible;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
    max-width: 100%;
}

/* Scrolling Banner */
.scrolling-banner {
    background: #FFD700;
    color: #333;
    padding: 0.001rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    width: 100%;
    margin-top: 0;
}

/* center the scrolling ribbon content and constrain width */
.scrolling-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.45rem 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.banner-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-banner 15s linear infinite;
    justify-content: center; /* center contents inside the animated strip */
}

.banner-content:hover {
    animation-play-state: paused;
}

.banner-text {
    font-size: 1rem;
    font-weight: 500;
    padding: 0 2rem;
    display: inline-block;
}
.banner-separator {
    font-size: 1.2rem;
    opacity: 0.6;
}

@keyframes scroll-banner {
    /* animate so the center of the repeated content passes the center of the ribbon */
    0%   { transform: translateX(-25%); }
    100% { transform: translateX(-75%); }
}
/* slightly slower, smoother scroll for centered effect */
.banner-content { animation-duration: 20s; }
@keyframes blink {
    0%, 100% {
        opacity: 1;
        color: #d32f2f;
    }
    50% {
        opacity: 0.2;
        color: #d32f2f;
    }
}

.blink-text {
    animation: blink 1s infinite;
    font-weight: 700;
    color: #d32f2f !important;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}
.logo h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-right: 2rem;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 1px 1px 3px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.1;
}

.logo-mark {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    height: 1.2rem;
    width: auto;
    margin-bottom: 0.5rem;
}

.logo-mortar {
    height: 1.2rem;
    width: auto;
    display: block;
}

.logo-pestle {
    position: absolute;
    height: 1.2rem;
    width: auto;
    top: -0.82rem;
    left: 48%;
    transform-origin: 20% 80%;
    pointer-events: none;
}

.logo-mark:hover .logo-pestle {
    animation: pestle-grind 8s ease-in-out infinite;
}

@keyframes pestle-grind {
    0% {
        transform: translateX(0);
    }
    8% {
        transform: translateX(3px);
    }
    16% {
        transform: translateX(-3px);
    }
    24% {
        transform: translateX(3px);
    }
    30% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(0);
    }
}

.logo-hover {
    transition: transform 0.3s ease;
}

.logo-hover:hover {
    transform: scale(1.3);
}

@keyframes pestle-grind {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(-6px); }
    75%  { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* new: horizontal left-right swing that preserves rotation per-breakpoint */
@keyframes pestle-grind-swing-base {
    0%   { transform: translateX(0) rotate(-47deg); }
    25%  { transform: translateX(-4px) rotate(-52deg); }
    50%  { transform: translateX(4px) rotate(-42deg); }
    75%  { transform: translateX(-4px) rotate(-50deg); }
    100% { transform: translateX(0) rotate(-47deg); }
}
@keyframes pestle-grind-swing-desktop {
    0%   { transform: translateX(0) rotate(8deg); }
    25%  { transform: translateX(-4px) rotate(3deg); }
    50%  { transform: translateX(4px) rotate(13deg); }
    75%  { transform: translateX(-4px) rotate(5deg); }
    100% { transform: translateX(0) rotate(8deg); }
}
@keyframes pestle-grind-swing-mobile {
    0%   { transform: translateX(0) rotate(14deg); }
    25%  { transform: translateX(-4px) rotate(9deg); }
    50%  { transform: translateX(4px) rotate(19deg); }
    75%  { transform: translateX(-4px) rotate(11deg); }
    100% { transform: translateX(0) rotate(14deg); }
}

/* slow, subtle animations for mortar and pestle (default, non-hover) */
@keyframes mortar-breathe {
    0%,100% { transform: translateY(0); }
    50%    { transform: translateY(2px); }
}

/* mortar horizontal-only shift used on hover (no vertical movement) */
@keyframes mortar-shift-horizontal {
    0%,100% { transform: translateX(0); }
    50%    { transform: translateX(-6px); }
}

/* legacy mortar-shift kept for non-hover subtle breathing (very small) */
@keyframes mortar-shift {
    0%,100% { transform: translateY(0) translateX(0); }
    50%    { transform: translateY(1px) translateX(-3px); }
}

@keyframes pestle-bob-base {
    0%,100% { transform: translateY(0) rotate(-47deg); }
    50%    { transform: translateY(1px) rotate(-47deg); }
}
@keyframes pestle-bob-desktop {
    0%,100% { transform: translateY(0) rotate(8deg); }
    50%    { transform: translateY(1px) rotate(8deg); }
}
@keyframes pestle-bob-mobile {
    0%,100% { transform: translateY(0) rotate(14deg); }
    50%    { transform: translateY(1px) rotate(14deg); }
}

/* apply slow animations by default; keep hover animation as a more active state */
.logo-mortar {
    /* Mortar stays steady, no animation */
    animation: none;
    will-change: transform;
}
.logo-pestle {
    /* Default: slow subtle bobbing, stays within mortar */
    animation: pestle-bob-base 2.5s ease-in-out infinite;
    will-change: transform, top;
}
.site-logo-title .logo-pestle {
    /* desktop variant uses its own keyframes so rotation stays correct */
    animation-name: pestle-bob-desktop;
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@media (max-width: 600px) {
    .site-logo-title .logo-pestle { animation-name: pestle-bob-mobile; }
}

/* re-enable pestle animation on hover and provide reduced-motion fallback */
.logo-mark:hover .logo-pestle,
.logo-mark:active .logo-pestle {
    /* Medium speed swing, stays within mortar */
    animation: pestle-grind-swing-base 1.2s ease-in-out infinite !important;
    transform-origin: 20% 80% !important;
}
.logo-mark:hover .logo-mortar,
.logo-mark:active .logo-mortar {
    /* Mortar stays steady */
    animation: none !important;
    transform-origin: 50% 50% !important;
}
@media (min-width: 601px) {
    /* desktop/large screens: use desktop-specific pestle swing (keeps rotation) */
    .logo-mark:hover .logo-pestle,
    .logo-mark:active .logo-pestle { animation-name: pestle-grind-swing-desktop !important; animation-duration: 1.2s !important; }
}
@media (max-width: 600px) {
    /* mobile: use smaller amplitude swing */
    .logo-mark:hover .logo-pestle,
    .logo-mark:active .logo-pestle { animation-name: pestle-grind-swing-mobile !important; animation-duration: 1.2s !important; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-mark:hover .logo-pestle,
    .logo-mark:active .logo-pestle,
    .logo-pestle,
    .logo-mortar { animation: none !important; }
}

@keyframes blink-dot {
    0%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.2;
    }
}

@keyframes typing-blink {
    from {
        border-right: 3px solid #FFD700;
    }
    to {
        border-right: 3px solid transparent;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: 0.5rem;
}

.nav-menu li {
    white-space: nowrap;
}

.nav-menu a {
    color: white;
    color: #fff !important;
    text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        padding: 0.5rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
    background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3), -1px -1px 4px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
        font-size: 0.78rem;
}

.nav-menu a.wrap-label {
    white-space: normal;
    line-height: 1.1 !important;
    height: 32px !important;
    padding: 0.4rem 0.6rem !important;
    max-width: 90px !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(145deg, #FFD700, #FFA500) !important;
    color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.4), -2px -2px 6px rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,215,0,0.8) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 1.4rem 0;
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: #5a3d7a;
}

.sliding-text-container {
    position: relative;
    min-height: 105px;
}

.sliding-text {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
    visibility: hidden;
}

.sliding-text.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    visibility: visible;
}

.sliding-text.exit {
    opacity: 0;
    transform: translateX(-100%);
    position: absolute;
    visibility: hidden;
}

.welcome-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
    font-weight: normal;
}

.welcome-section p {
    font-size: 1.7rem;
    animation: fadeInUp 1s ease;
    font-weight: normal;
}

.highlight-pharmacist {
    font-size: 1.7rem;
    font-weight: bold;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    position: relative;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: #5a3d7a;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-sublabel {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

/* Home Page Media */
.home-media-section {
    background: #fff;
    padding: 2.5rem 0;
    text-align: center;
}

.home-media-section h2 {
    color: #667eea;
    margin-bottom: 1.2rem;
}

.home-youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.home-youtube .youtube-thumb {
    display: block;
    width: min(84px, 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    background: #000;
}

.home-youtube .youtube-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.home-youtube .youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #ff0000;
    color: #fff;
     padding: 0.005rem 0;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-youtube .youtube-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.25);
}

.home-youtube .youtube-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.home-youtube svg {
    width: 100%;
    height: 100%;
}

/* Calendar Section */
.calendar-section {
    background: white;
    padding: 3rem 0;
}

/* Welcome Content Layout */
.welcome-content-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.left-text-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4), 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex: 3;
    display: flex;
    flex-direction: column;
}

.left-text-content h2 {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.welcome-author {
    color: #FFB6C1;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.text-placeholder {
    color: #ffffff;
    line-height: 1.9;
    text-align: center;
    font-size: 1.05rem;
}

.text-placeholder p {
    margin-bottom: 1rem;
}

.right-calendar-content {
    background: white;
    flex: 7;
    display: flex;
    flex-direction: column;
}

.right-calendar-content h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

.calendar-section h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 2rem;
}

.calendar-placeholder {
    max-width: 100%;
    margin: 0 auto;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    perspective: 1000px;
    position: relative;
    height: 100%;
}

.calendar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.calendar-placeholder img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.upload-note {
    color: #999;
    margin-top: 1rem;
    font-style: italic;
}

/* Pharmacist's Oath Section */
.oath-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    color: white;
}

.oath-section .section-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.oath-controls {
    text-align: center;
    margin-bottom: 1.5rem;
}

.oath-btn {
    background: #FFD700;
    color: #333;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 10px;
}

.oath-btn:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.oath-btn:active {
    transform: translateY(0);
}

.oath-scroll-container {
    max-height: 350px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translate3d(0, 0, 0);
}

.oath-scroll-wrapper {
    animation: scroll-oath 62s linear;
}

.oath-scroll-wrapper:hover {
    animation-play-state: paused;
}

.oath-content {
    padding: 2rem 0;
    text-align: center;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.oath-music-header {
    margin: 0 0 1.1rem 0;
}

.oath-strip-sticky {
    position: sticky;
    top: 84px;
    z-index: 20;
    width: min(96%, 760px);
    margin: 0 auto 1rem auto;
}

.oath-strip-notes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 6px;
    pointer-events: none;
}

.oath-strip-notes .strip-notes {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    font-size: 1.1rem;
    line-height: 1;
}

.oath-strip-notes .strip-notes span {
    display: inline-block;
    transform: translateY(0);
    transition: transform 90ms linear;
}

.oath-strip-notes .strip-notes-saffron {
    color: #ff9b33;
}

.oath-strip-notes .strip-notes-white {
    color: #ffd700;
}

.oath-strip-notes .strip-notes-green {
    color: #ffd700;
}

.oath-music-notes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.35rem;
    color: #ffd700;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}

.oath-music-strip {
    position: relative;
    height: 24px;
    width: 100%;
    margin: 0 auto;
    border-radius: 999px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: end;
    gap: 4px;
    padding: 4px 2px;
}

.oath-music-strip .music-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(80, minmax(0, 1fr));
    align-items: end;
    gap: 0;
}

.oath-music-strip .music-bar {
    display: block;
    width: 1px;
    min-width: 1px;
    height: 5px;
    justify-self: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    transform-origin: center bottom;
    transform: scaleY(1);
    transition: transform 90ms linear;
}

.oath-music-strip .music-section-saffron .music-bar {
    background: rgba(255, 153, 51, 0.98);
    box-shadow: 0 0 0 0.45px rgba(255, 233, 204, 0.9), 0 0 2px rgba(255, 200, 130, 0.7);
}

.oath-music-strip .music-section-white .music-bar {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 0.45px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.6);
}

.oath-music-strip .music-section-green .music-bar {
    background: rgba(19, 136, 8, 0.98);
    box-shadow: 0 0 0 0.45px rgba(222, 255, 222, 0.95), 0 0 2px rgba(173, 255, 173, 0.75);
}

.oath-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.oath-content p {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    text-align-last: center;
    transition: color 0.5s ease, text-shadow 0.5s ease;
    font-weight: 500;
}

@media (max-width: 600px) {
    .oath-music-notes {
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .oath-music-strip {
        height: 20px;
        width: 100%;
        gap: 0;
        padding: 3px 5px;
    }

    .oath-music-strip .music-section {
        grid-template-columns: repeat(70, minmax(0, 1fr));
    }

    .oath-strip-sticky {
        top: 72px;
        width: min(98%, 680px);
    }
}

.oath-content p.highlight {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    font-weight: 500;
}

@keyframes scroll-oath {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(0, -100%, 0);
    }
}

@keyframes scroll-executives {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Two Column Section */
.two-column-section {
    padding: 3rem 0;
    background: #f4f4f4;
}



.two-column-section .container {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 2rem;
}

.left-column,
.right-column {
    background: white;
    padding: 2rem 2rem 0 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.left-column h2,
.right-column h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Advertisement Section Below Oath */
.advertisement-section {
    padding: 1.5rem 0 2rem 0;
    background: #ffffff;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.advertisement-section h2 {
    display: none;
}

.advertisement-section .ad-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
    max-width: 100%;
    overflow: hidden;
}

.advertisement-section .ad-placeholder {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.3rem;
    text-align: center;
    min-height: auto;
    height: auto;
    max-height: 2.5rem;
}

.advertisement-section .ad-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: none;
}

.advertisement-section .upload-note {
    margin-top: 0.01rem;
    color: #667eea;
    font-size: 0.6rem;
    font-weight: 600;
    display: block;
}

/* Scrolling Container for Executives */
.scrolling-container {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    mask-image: linear-gradient(to bottom, black 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 100%);
}

.scroll-wrapper {
    animation: scroll 40s linear infinite;
    will-change: transform;
}

.scrolling-container:hover .scroll-wrapper {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.executive-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.executive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.executive-photo {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.executive-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.executive-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.executive-info .designation {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.executive-info .phone {
    color: #666;
}

/* Advertisement Container */
.ad-container {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ad container inside dual-sections: fill available space */
.dual-sections .ad-container {
    flex: 1;
    max-height: none;
}
.dual-sections .ad-placeholder {
    width: 100%;
    height: 100%;
    max-height: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem;
}

.ad-placeholder {
    width: 100%;
    height: auto;
    max-height: 40px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ad-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
}

.footer p {
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        padding: 0 0.75rem;
        font-size: 0.95rem;
        box-sizing: border-box;
    }

    /* make the long nav label narrower on small screens */
    .nav-menu a.wrap-label {
        max-width: 90px;
        font-size: 0.92rem;
        padding: 0 0.45rem;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        white-space: normal;
        text-align: center;
    }
        max-width: 80px;
        font-size: 0.62rem;
        padding: 0.4rem 0.45rem;
    }

    .logo h2 {
        font-size: 1.5rem;
        margin-right: 1.5rem;
    }
    
    .two-column-section .container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advertisement-section .ad-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
}

@media (max-width: 768px) {
    .welcome-content-layout {
        flex-direction: column;
    }
    .welcome-section h1 {
        font-size: 2rem;
    }
    .left-text-content {
        padding: 2rem 1.5rem;
    }
    .left-text-content h2 {
        font-size: 1.8rem;
    }
    .welcome-author {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }
    .text-placeholder {
        font-size: 1rem;
    }
}

/* Keep navbar on single row for medium+ screens; avoid unexpected wrapping (fix for 'Who is Who' page) */
@media (min-width: 769px) {
    .navbar .container { align-items: center !important; }
    .navbar .logo { 
        flex: 0 0 auto !important; 
        max-width: 680px !important; 
        margin-top: 0 !important; 
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Desktop: use flex for logo row, no absolute positioning */
    .site-logo-title {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1.1rem !important;
        font-size: 2.6rem !important;
        line-height: 1 !important;
        letter-spacing: 0.5px !important;
        font-weight: 900 !important;
        width: auto !important;
        padding: 0 !important;
    }
    .site-logo-title .brand-text {
        position: static !important;
        transform: none !important;
        z-index: auto !important;
        display: inline-block !important;
        margin: 0 0.2rem 0 0.2rem !important;
    }
    .site-logo-title img.logo-sm {
        height: 2.1rem !important;
        width: auto !important;
        margin-bottom: 0.1rem !important;
    }
    /* Make mortar/pestle match left circular logo (`.logo-sm`) and align pestle on the mortar */
    .site-logo-title .logo-mark {
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
    }
    .site-logo-title .logo-mortar {
        height: 1.9rem !important; /* increased slightly */
        max-width: 2.4rem !important; /* allow slightly wider mortar */
        transform: translateY(6px) scaleX(1) !important; /* moved down slightly */
        width: auto !important;
        display: inline-block !important;
        margin: 0 0.25rem 0 0 !important;
        vertical-align: middle !important;
    }
    .site-logo-title .logo-pestle {
        position: absolute !important;
        left: 50% !important; /* Centered horizontally on the mortar */
        top: -0.45rem !important; /* lowered to rest on mortar */
        height: 1.4rem !important; /* larger on desktop */
        max-width: 1.4rem !important;
        transform: rotate(8deg) scale(1) !important; /* rotated 47° anticlockwise total */
        transform-origin: 50% 100% !important; /* Pivot point at the bottom center */
    }
    .appa-tagline { font-size: 1.6rem !important; opacity: 1 !important; margin-top: 0.25rem !important; }
    .navbar .logo img { height: auto !important; max-height: 3.3rem !important; margin-top: 0.35rem !important; }
    .nav-menu { flex: 1 1 auto !important; min-width: 0 !important; justify-content: flex-start !important; flex-wrap: wrap !important; gap: 0.35rem !important; }
    .nav-menu li { flex: 0 1 auto !important; }
    .nav-menu a { white-space: nowrap !important; font-size: 0.76rem !important; padding: 0.45rem 0.55rem !important; }

    /* Force wrapped, centered label for long nav items (Downloads & Links) */
    .nav-menu a.wrap-label,
    .nav-menu a.downloads-nav-btn {
        white-space: normal !important;
        max-width: 110px; /* controls wrap width */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 0.6rem !important;
        line-height: 1.05 !important;
        font-size: 0.78rem !important; /* decreased */
        box-sizing: border-box !important;
    }
}

@media (max-width: 600px) {
    /* stack header elements and center logo on small screens */
    .navbar .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.3rem !important;
    }
    .logo { 
        text-align: center !important; 
        margin: 0.2rem 0 !important;
        padding: 0 !important;
        background: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .site-logo-title { font-size: 1.6rem !important; }

    /* ensure APPA + logos are centered on mobile (override desktop absolute positioning) */
    .site-logo-title { position: static !important; display: flex !important; align-items: center !important; justify-content: center !important; width: auto !important; padding: 0 !important; gap: 0.5rem !important; }
    .site-logo-title .brand-text { position: static !important; transform: none !important; left: auto !important; display: inline-block !important; }
    .site-logo-title img.logo-sm, .site-logo-title .logo-mark { position: static !important; transform: none !important; top: auto !important; right: auto !important; margin-top: 0.1rem !important; }

    /* make logo-mark positioned so pestle can be precisely placed inside mortar */
    .site-logo-title .logo-mark { position: relative !important; display: inline-flex !important; align-items: center !important; }
    .site-logo-title .logo-mortar { display: inline-block !important; margin-top: 0.15rem !important; transform: translateY(6px) !important; }
    .site-logo-title .logo-pestle { position: absolute !important; left: 72% !important; top: -0.15rem !important; height: 1.1rem !important; width: auto !important; max-width: 1.25rem !important; z-index: 4 !important; margin: 0 !important; transform: rotate(-17deg) scale(1) !important; transform-origin: 20% 80% !important; }

    /* mobile: subtle entrance animation for logos (keep mortar/pestle static) */
    @keyframes mobile-logo-enter {
        from { opacity: 0; transform: translateY(6px) scale(0.98); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    :root { --mobile-logo-duration: 600ms; --mobile-logo-ease: cubic-bezier(.22,.9,.34,1); }

    .site-logo-title img.logo-sm,
    .site-logo-title .brand-text,
    .site-logo-title .logo-mark {
        animation: mobile-logo-enter var(--mobile-logo-duration) var(--mobile-logo-ease) both !important;
        will-change: transform, opacity;
    }

    /* keep mortar & pestle static on small screens */
    .site-logo-title .logo-pestle {
        position: absolute !important;
        left: 70% !important;
        top: -0.45rem !important; /* lowered for mortar contact on small screens */
        height: 1.1rem !important;
        transform: rotate(14deg) scale(1) !important;
        transform-origin: 20% 80% !important;
    }
        .site-logo-title img.logo-sm,
        .site-logo-title .brand-text,
        .site-logo-title .logo-mark {
            animation: none !important;
            transition: none !important;
        }
    }

    .nav-menu {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        /* match header gradient so mobile menu feels consistent */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        /* make nav flow below logo instead of overlapping */
        position: static !important;
        top: auto !important;
        left: auto !important;
        z-index: 1000;
        padding: 0.25rem 0.08rem;
        gap: 0.18rem 0.6%;
        justify-content: center; /* center compact buttons */
        box-shadow: 0 10px 30px rgba(2,6,23,0.12) !important;
        border-radius: 8px; /* subtle rounding to match shadow */
        margin-top: 0.4rem !important; /* ensure space under logo/tagline */
    }

    /* Ensure tagline is visible on mobile */
    .appa-tagline {
        display: flex !important;
        opacity: 1 !important;
        font-size: 0.85rem !important;
        margin-top: 0.15rem !important;
        min-height: 1.2em;
    }

/* Force desktop nav visible and hide hamburger on larger screens */
@media (min-width: 601px) {
    .nav-menu { display: flex !important; position: relative !important; z-index: 1001 !important; justify-content: flex-start !important; }
    .nav-menu li { display: inline-flex !important; }
    .hamburger { display: none !important; }
}

    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: auto; /* shrink-to-fit */
        min-width: 0;
        margin: 0 0.35% 0.25rem 0.35%;
        padding: 0;
        border: none;
        text-align: center;
        list-style: none;
        display: inline-flex; /* allow sizing to content */
        align-items: center;
        justify-content: center;
    }
    .nav-menu a,
    .nav-menu a.wrap-label,
    .nav-menu a.downloads-nav-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important; /* shrink to text + padding */
        height: 30px !important;
        min-height: 30px !important;
        max-height: 36px !important;
        padding: 0 0.45rem !important; /* small horizontal padding */
        font-size: 0.62rem !important;
        font-weight: 500 !important;
        color: #fff !important; /* white text to contrast header */
        background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important; /* translucent white */
        border-radius: 6px !important;
        box-shadow: 0 6px 18px rgba(2,6,23,0.18) !important; /* stronger button shadow */
        box-sizing: border-box !important;
        text-align: center !important;
        white-space: normal !important; /* allow wrapping for long labels */
        word-break: break-word !important;
        hyphens: auto !important;
        margin: 0 !important;
        line-height: 1.05 !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        transition: background 0.18s, color 0.18s, transform 0.15s !important;
    }
    
    /* Ensure HOME button remains prominent but not pushed inward */
    .nav-menu li:nth-child(1) a {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.55rem;
        font-weight: 600;
    }

    /* Shrink long label so it doesn't overflow */
    .nav-menu a.wrap-label {
        max-width: 70px;
        font-size: 0.52rem;
        padding: 0.25rem 0.35rem;
        white-space: normal;
        text-align: center;
    }

    /* Active nav highlight must override the translucent background */
    .nav-menu a.active,
    .nav-menu a.active:hover {
        background: linear-gradient(145deg, #FFD700, #FFA500) !important;
        color: #333 !important;
        border: 1px solid rgba(255,215,0,0.8) !important;
        box-shadow: 4px 4px 12px rgba(0,0,0,0.4), -2px -2px 6px rgba(255,255,255,0.15) !important;
    }

    /* default: hide hamburger (desktop/webview) — mobile shows it via media query */
    .hamburger {
        display: none;
    }
}

/* For very small screens, show hamburger menu */
@media (max-width: 480px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* Force remove bottom white space from State Executive Body section */
.dual-sections {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.dual-sections .section-panel {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}
.dual-sections .scrolling-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
section.dual-sections {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Debug utility: add `debug-outline` to <body> (use ?debug=1) to highlight elements */
.debug-outline * { outline: 1px dashed rgba(255,0,0,0.45) !important; }
.debug-outline .nav-menu a { outline: 2px solid rgba(0,128,0,0.35) !important; }
.debug-outline .nav-menu li { background: rgba(255,255,255,0.02) !important; }
.debug-outline .container { outline: 1px dotted rgba(0,0,255,0.18) !important; }
/* End debug utility */

